Skip to content

Commit e175cfb

Browse files
committed
gh action
1 parent e6d1d4b commit e175cfb

1 file changed

Lines changed: 15 additions & 22 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
1-
name: Node CI
2-
1+
name: test
32
on: [push]
4-
53
jobs:
6-
build:
7-
4+
test:
85
runs-on: ubuntu-latest
9-
10-
strategy:
11-
matrix:
12-
node-version: [12.x]
13-
146
steps:
15-
- uses: actions/checkout@v1
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- name: npm install, build, and test
21-
run: |
22-
npm ci
23-
npm run build --if-present
24-
npm test
25-
env:
26-
CI: true
7+
- name: Check out code
8+
uses: actions/checkout@v2
9+
- uses: actions/setup-node@v4
10+
with:
11+
node-version: 20
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
cache: yarn
17+
- run: yarn install --immutable
18+
- name: Lint TypeScript
19+
run: yarn run test

0 commit comments

Comments
 (0)