Browse Source

chore: update workflow

pull/11496/head
afc163 9 months ago
parent
commit
1a60a7ca21
  1. 22
      .github/workflows/coverage.yml
  2. 2
      .github/workflows/preview-build.yml
  3. 3
      biome.json

22
.github/workflows/coverage.yml

@ -9,19 +9,13 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v4
- name: Use Node.js 16.x - name: Use Node.js 20
uses: actions/setup-node@v1 uses: actions/setup-node@v4
with: with:
node-version: 16.x node-version: 20
- run: echo ${{github.ref}} - run: echo ${{github.ref}}
- run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7 - uses: oven-sh/setup-bun@v2
- run: pnpm config set store-dir ~/.pnpm-store - run: bun install
- run: pnpm install --strict-peer-dependencies=false - run: bun run test:coverage
- run: yarn run test:coverage - uses: codecov/codecov-action@v5
env:
CI: true
PROGRESS: none
NODE_ENV: test
NODE_OPTIONS: --max_old_space_size=4096
- run: bash <(curl -s https://codecov.io/bash)

2
.github/workflows/preview-build.yml

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}

3
biome.json

@ -3,8 +3,7 @@
"files": { "files": {
"ignoreUnknown": true, "ignoreUnknown": true,
"includes": [ "includes": [
"**", "**/*",
".github/**",
"!**/.umi/**", "!**/.umi/**",
"**/*.md", "**/*.md",
"!**/.umi-production/**", "!**/.umi-production/**",

Loading…
Cancel
Save