Skip to content

fix: upgrade PC/SC plugin #50

fix: upgrade PC/SC plugin

fix: upgrade PC/SC plugin #50

name: Build and Test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code from ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Node JS
uses: actions/setup-node@v4
with:
node-version: 16
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Update permissions
working-directory: .
run: chmod +x ./client/android/gradlew ./server/gradlew ./.github/scripts/*.sh
- name: Check version client Android
working-directory: ./client/android/
run: ../../.github/scripts/check_version.sh
- name: Check version server
working-directory: ./server/
run: ../.github/scripts/check_version.sh
- name: Check code format, build and test client .NET
working-directory: ./client/dotnet
run: |
dotnet restore
dotnet format --verify-no-changes App.sln
dotnet build --no-restore
dotnet test --no-build --verbosity normal
- name: Build and Test client Android
working-directory: ./client/android/
run: ./gradlew build test --info --stacktrace
- name: Build and Test server
working-directory: ./server/
run: |
cd ./dashboard-app
npm install
cd ..
./gradlew build test --info --stacktrace