-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (37 loc) · 927 Bytes
/
tests.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
name: tests
on: [push, pull_request]
jobs:
e2e-tests:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm i
- run: docker-compose run --rm e2e-tests 2>&1
- run: docker-compose logs blog
if: failure()
- run: docker-compose logs e2e-tests
if: failure()
unit-tests:
runs-on: [ ubuntu-latest ]
strategy:
matrix:
node: [ 18, 20 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm i
- run: npm test
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run lint