Release 2024.10.21 #65
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 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- 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 ./client/android-light/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 clean build test --info --stacktrace | |
- name: Build and Test client Android Light | |
working-directory: ./client/android-light/ | |
run: ./gradlew clean build test --info --stacktrace | |
- name: Build and Test server | |
working-directory: ./server/ | |
run: | | |
cd ./dashboard-app | |
npm install | |
cd .. | |
./gradlew clean build test --info --stacktrace |