-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 984 Bytes
/
quality-checks.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
name: 🔬 quality checks
run-name: 🔬 @${{ github.triggering_actor }} is checking quality on ${{ github.ref_name }}
on:
pull_request:
push:
branches: [main]
jobs:
lint:
name: 🧹 lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- run: make init
- run: make lint
test-with-coverage:
name: 🧪 test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: asdf-vm/actions/install@v3
- run: make init
- run: make test/coverage/report
- run: curl https://deepsource.io/cli | sh
- name: deepsource report
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
run: |
./bin/deepsource report \
--analyzer test-coverage \
--key javascript \
--value-file "$(realpath ./coverage/lcov.info)"