generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (33 loc) · 809 Bytes
/
test.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
name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
jobs:
unit:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- run: npm install --global npm@"$(npm pkg get 'engines.npm' | jq -r .)" && npm -v
- run: npm ci
- run: git diff --exit-code # check dist/
- run: npm test --ignore-scripts
smoke:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./
lint:
uses: ybiquitous/.github/.github/workflows/nodejs-lint-reusable.yml@main