fix: init quickapp demo npm registry expired error #187
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'CI' | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
unit-test: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- run: npx envinfo --registry https://registry.npmmirror.com/ | |
- run: yarn install --registry https://registry.npmmirror.com/ | |
- name: Build | |
run: npm run build | |
- name: Prettier-check | |
run: npm run prettier-check | |
- name: Tests | |
run: npm run test | |
test-cov: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- run: npx envinfo --registry https://registry.npmmirror.com/ | |
- run: yarn install --registry https://registry.npmmirror.com/ | |
- name: Build | |
run: npm run build:dev | |
- name: Tests:cov | |
run: npm run test:cov |