chore(deps): update dependency @types/node to v22.9.1 #1289
Workflow file for this run
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: | |
- '*' | |
- '!master' | |
pull_request: | |
branches: [ master ] | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Get yarn cache path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Restore yarn cache | |
uses: actions/cache@v4 | |
id: yarn-cache | |
with: | |
path: ${{steps.yarn-cache-dir-path.outputs.dir}} | |
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}} | |
restore-keys: | | |
${{runner.os}}-yarn- | |
- name: Install dependencies | |
run: | | |
yarn install --frozen-lockfile | |
# 同下 | |
# yarn playwright install --with-deps | |
- name: Check grammar | |
run: | | |
yarn lint | |
yarn typecheck | |
# 以下是端到端测试框架 Playwright 的配置,比赛密集开发结束后再启用 | |
# - name: Run Playwright tests | |
# run: yarn playwright test | |
# - name: Upload Playwright report | |
# uses: actions/upload-artifact@v4 | |
# if: always() | |
# with: | |
# name: playwright-report | |
# path: playwright-report/ | |
# retention-days: 30 |