-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (38 loc) · 1.05 KB
/
Copy pathlint-and-test.yml
File metadata and controls
47 lines (38 loc) · 1.05 KB
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
43
44
45
46
47
name: Lint and test
on:
push:
branches:
- main
pull_request:
jobs:
run-linters-and-tests:
name: Run linters and tests
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
cache: "pnpm"
- name: Install Node.js dependencies
run: pnpm install
- name: Run linters
uses: wearerequired/lint-action@v2
with:
continue_on_error: false
eslint: true
eslint_extensions: js,ts
prettier: true
- name: Run tests
run: pnpm run testCoverage
- name: Report test coverage to DeepSource
uses: deepsourcelabs/test-coverage-action@master
with:
key: javascript
coverage-file: ./coverage/cobertura-coverage.xml
dsn: ${{ secrets.DEEPSOURCE_DSN }}