Release 2024.09.20 #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |