-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (36 loc) · 1005 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: test
concurrency: build
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Prepare - Checkout
uses: actions/[email protected]
- name: Test - Start Compose
run: docker-compose up -d
working-directory: tests
- name: Test - RUN
uses: kohlerdominik/[email protected]
with:
image: node
environment: |
CONFIG__WAIT=60
CONFIG__SERVER__URL=http://localhost:8080
default_network: host
options: --name test1
volumes: ${{ github.workspace }}:/src
run: |
cd /src
yarn install
./test.sh
- name: Test - Dump docker logs on failure
if: failure()
uses: jwalton/[email protected]
with:
images: 'squidex,squidex/resizer'
tail: '100'
- name: Test - Cleanup
if: always()
run: docker-compose down
working-directory: tests