-
Notifications
You must be signed in to change notification settings - Fork 123
37 lines (33 loc) · 989 Bytes
/
nodejs.yml
File metadata and controls
37 lines (33 loc) · 989 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
name: Node.js CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
lint:
name: Lint using ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use latest Node.js LTS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: lts/*
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
test:
name: Test on Node.js
uses: aduh95/action/.github/workflows/node-test.yaml@f6f22a37631916d230df6d3aac2cefdae1a6bfea # v0.1.10
with:
action-repository: aduh95/action
action-ref: f6f22a37631916d230df6d3aac2cefdae1a6bfea
runs-on: ubuntu-latest, macos-latest
test-command: npm run coverage:ci
post-test-steps: |
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5