-
Notifications
You must be signed in to change notification settings - Fork 126
41 lines (35 loc) · 958 Bytes
/
pull-reqeust.yml
File metadata and controls
41 lines (35 loc) · 958 Bytes
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: Pull Request
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
jobs:
checks:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x, 20.x, 24.x, 25.x ]
name: Nodejs ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v2
- name: Setup Nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies and build
run: npm install
- name: Run lint checks
run: npm run lint:ci
- name: Run prettier checks
run: npm run lint:prettier:check
- name: Run tests
run: npm run test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}