-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (41 loc) · 1.16 KB
/
ci.yaml
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
name: Main
on:
push:
pull_request:
types: [opened, synchronize]
jobs:
ci:
container: node:20.9.0@sha256:62efd17e997bc843aefa4c003ed84f43dfac83fa6228c57c898482e50a02e45c
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GENERATED_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'npm'
cache-dependency-path: |
package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Run Test
run: npm run test
- name: Build
run: npm run build
- name: Coverage
if: (github.ref == 'refs/heads/main' || github.base_ref)
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/cobertura-coverage.xml
- name: Test github action
uses: ./
with:
token: ${{ secrets.SPECFY_TOKEN }}