-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (55 loc) · 1.38 KB
/
build.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
56
57
name: Build & tests
on:
push:
branches:
- master
pull_request:
types: [ opened, reopened, synchronize ]
jobs:
front:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
working-directory: front
run: npm ci
- name: Build
working-directory: front
run: npm run build
- name: Tests
working-directory: front
run: npm test
service:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'adopt'
- name: Test
working-directory: service
run: mvn -B test
- name: Build
working-directory: service
run: mvn --batch-mode -DskipTests package
end-to-end:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
# TODO: add step to launch service
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test