forked from cartant/eslint-plugin-rxjs
-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (39 loc) · 1.05 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
on:
push:
branches:
- main
pull_request: {}
concurrency:
group: '${{ github.workflow }} - ${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
strategy:
matrix:
node-version: [18, 20]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Enable Yarn
run: corepack enable
- name: Install Packages
run: yarn install
- name: Type Check
run: yarn typecheck
- name: Lint
run: yarn lint
- name: Test Coverage
run: yarn coverage
- name: Report Coverage
uses: zgosalvez/github-actions-report-lcov@v4
with:
coverage-files: coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true