-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.61 KB
/
test.yaml
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: Run automated tests
on:
workflow_dispatch:
push:
branches:
- main
- production
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
# Tests with a database
zorm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Docker images
uses: ScribeMD/[email protected]
with:
key: docker-cache
- run: >
docker compose
--project-directory .
--file github-actions/compose.yaml
run --rm --user root
zorm-test-github-actions
# Tests without a database
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- run: gradle excel-read-named:test
- run: gradle zummon:jvmTest
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: npm
cache-dependency-path: ./frontend/package-lock.json
- run: npm install
working-directory: ./frontend
- run: npm run test
working-directory: ./frontend