-
Notifications
You must be signed in to change notification settings - Fork 24
54 lines (44 loc) · 1.1 KB
/
main.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
name: Automated Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: Setup Maven Action
uses: s4u/[email protected]
with:
java-version: 21
- name: Build
run: mvn clean install -DskipTests -Dcheckstyle.skip
working-directory: ./backend
- name: Verify the checkstyle
run: mvn checkstyle:check
working-directory: ./backend
- name: Run the tests
run: mvn test
working-directory: ./backend
frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout Frontend
uses: actions/checkout@v2
- name: Setup
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.24.3
- name: Download Dependencies
run: flutter pub get
working-directory: ./frontend
- name: Analyze
run: flutter analyze
working-directory: ./frontend
- name: Run the tests
run: flutter test
working-directory: ./frontend