-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 995 Bytes
/
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
name: Run tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: base_image_should_change
with:
filters: |
src:
- package.json
- yarn.lock
- base.Dockerfile
- entrypoint.sh
- worker-entrypoint.sh
- tsconfig.json
- name: Build the docker-compose stack
if: steps.base_image_should_change.outputs.src == 'true'
run: ./run docker:build
- name: Pull latest base image
if: steps.base_image_should_change.outputs.src == 'false'
run: ./run docker:pull
- name: Start app
run: ./run start:local
- name: Run test suite
run: ./run test:unit
- name: Run integration test suite
run: ./run test:integration