This repository was archived by the owner on Jan 2, 2025. It is now read-only.
chore: 移除不必要的配置文件和示例代码 #36
This file contains hidden or 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, pull_request] | |
env: | |
CI: true | |
VERSION: ${{ github.event.pull_request.number }} | |
jobs: | |
publish: | |
name: Install and publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
- name: Restore yarn cache | |
id: yarn-cache | |
uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: | | |
yarn install --cwd example --frozen-lockfile | |
yarn install --frozen-lockfile | |
- name: Check eslint | |
run: yarn lint | |
- name: Check test | |
run: yarn test |