Skip to content

Commit 51411a0

Browse files
committed
Upgrade CI setup
1 parent 0ce567d commit 51411a0

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,19 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- id: nvm
14-
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
15-
- uses: actions/setup-node@v2-beta
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
1614
with:
17-
node-version: '${{ steps.nvm.outputs.NVMRC }}'
18-
- uses: actions/cache@v2
15+
node-version-file: '.nvmrc'
16+
- uses: actions/cache@v3
1917
with:
2018
path: ~/.npm
2119
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2220
restore-keys: |
2321
${{ runner.os }}-node-
24-
- name: install, build, test
25-
run: |
26-
npm install --no-optional --no-audit --no-fund --progress=false
27-
npm run lint
28-
npm run test
29-
npm run test:rules
30-
npm run build:docs
31-
npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' && rm *.tgz
22+
- run: npm ci
23+
- run: npm run lint
24+
- run: npm run test
25+
- run: npm run test:rules
26+
- run: npm run build:docs
27+
- run: npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' && rm *.tgz

0 commit comments

Comments
 (0)