ci: update ci script
This commit is contained in:
parent
0dc521b9e1
commit
b39dc52fc8
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -10,24 +10,26 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set node version to 16
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16.8
|
||||
- uses: bahmutov/npm-install@v1
|
||||
node-version: 16
|
||||
cache: 'yarn'
|
||||
- run: yarn install
|
||||
- name: Run unit tests
|
||||
run: yarn test --ci
|
||||
|
||||
test-dts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set node version to 16
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
- uses: bahmutov/npm-install@v1
|
||||
cache: 'yarn'
|
||||
- run: yarn install
|
||||
- name: Run type declaration tests
|
||||
run: yarn test-dts
|
||||
|
||||
@ -36,15 +38,15 @@ jobs:
|
||||
env:
|
||||
CI_JOB_NUMBER: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set node version to 16
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
- uses: bahmutov/npm-install@v1
|
||||
|
||||
cache: 'yarn'
|
||||
- run: yarn install
|
||||
- name: Check build size
|
||||
uses: posva/size-check-action@v1.1.2
|
||||
uses: posva/size-check-action@v2.1.2
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
build_script: size
|
||||
|
Loading…
Reference in New Issue
Block a user