forked from mike-marcacci/node-redlock
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (27 loc) · 805 Bytes
/
ci.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
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Build & Test
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Enable docker layer cache
uses: satackey/[email protected]
continue-on-error: true
- name: Pull docker images
run: docker-compose pull
continue-on-error: true
- name: Lint the source
run: docker compose run --rm --no-TTY builder yarn lint
- name: Transpile into dist
run: docker compose run --rm --no-TTY builder yarn build
- name: Run tests
run: docker compose run --rm --no-TTY runner yarn test
- name: Stop containers
if: always()
run: docker compose down