-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.65 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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