File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test and lint
2+ concurrency :
3+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
4+ cancel-in-progress : true
5+
6+ on :
7+ push :
8+ branches : [main]
9+ pull_request :
10+ branches : ["**"]
11+
12+ jobs :
13+ check :
14+ name : Test and lint
15+ runs-on : ubuntu-latest
16+ timeout-minutes : 30
17+
18+ steps :
19+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
20+
21+ - name : Node setup
22+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
23+ with :
24+ cache-dependency-path : package.json
25+ node-version : " 20.x"
26+ cache : " npm"
27+
28+ - name : Install and build
29+ run : |
30+ npm i
31+ npm run build
32+ - name : Publish package for testing branch
33+ run : npx pkg-pr-new publish || echo "Have you set up pkg-pr-new for this repo?"
34+ - name : Test
35+ run : |
36+ npm run test
37+ npm run typecheck
38+ npm run lint
You can’t perform that action at this time.
0 commit comments