Skip to content

Commit

Permalink
Merge pull request #1409 from Conflux-Chain/vitest
Browse files Browse the repository at this point in the history
migrate to vitest
  • Loading branch information
iosh authored Sep 23, 2024
2 parents b5fd72e + 3f32559 commit 0193091
Show file tree
Hide file tree
Showing 122 changed files with 14,255 additions and 15,895 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/comment-on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
comment-release:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: apexskier/github-release-commenter@v1
with:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/deploy-basic-dapp-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ on:
jobs:
deploy-dapp-demo:
if: ${{ github.event.pull_request.merged == true && github.head_ref == '__release-pkg' }}
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [16.14]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Deploy to dapp-demo.fluentwallet.dev
uses: dswistowski/surge-sh-action@v1
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ on:
jobs:
deploy-doc:
if: ${{ github.event.pull_request.merged == true && github.head_ref == '__release-pkg' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
Expand Down Expand Up @@ -59,9 +59,9 @@ jobs:
- run: yarn workspace doc build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.CONFLUX_BOT_GH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
external_repository: Conflux-Chain/fluent-wallet-doc
publish_branch: main
publish_dir: ./websites/doc/build
2 changes: 1 addition & 1 deletion .github/workflows/opti-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Cloning the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Crush Images!
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ on:
jobs:
pre-release:
if: ${{ github.event.pull_request.merged == true && github.head_ref == '__release-pkg' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# to trigger next gh action
# https://git.luolix.topmunity/t/push-from-action-even-with-pat-does-not-trigger-action/17622/6
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: ${{ matrix.node-version }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/prod-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ on:
jobs:
prod-release:
if: ${{ github.event.pull_request.merged == true }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# to trigger next gh action
# https://git.luolix.topmunity/t/push-from-action-even-with-pat-does-not-trigger-action/17622/6
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: ${{ matrix.node-version }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-npm-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ on:
jobs:
release-pkg:
if: ${{ github.event.pull_request.merged == true && github.head_ref != '__release-pkg' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# to trigger next gh action
# https://git.luolix.topmunity/t/push-from-action-even-with-pat-does-not-trigger-action/17622/6
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/push-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ on: [push]
jobs:
lint:
if: ${{ github.ref != 'refs/heads/__release-pkg'}}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
Expand Down Expand Up @@ -56,14 +56,14 @@ jobs:

unit-test:
if: ${{ github.ref != 'refs/heads/__release-pkg'}}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
Expand Down Expand Up @@ -101,14 +101,14 @@ jobs:

integration-test:
if: ${{ github.ref != 'refs/heads/__release-pkg'}}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
Expand Down Expand Up @@ -137,22 +137,22 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-and-maven-
- run: yarn install --immutable
- run: yarn test:integration --coverage --detectOpenHandles --forceExit
- run: yarn test:integration
- uses: codecov/codecov-action@v3
with:
flags: integrationtests
directory: ./coverage/integration
verbose: true

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
Expand Down Expand Up @@ -181,18 +181,18 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-and-maven-
- run: yarn install --immutable
- run: yarn prod
- run: yarn build

build-doc:
if: ${{ github.ref != 'refs/heads/__release-pkg'}}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
- run: yarn workspace doc build
# build-storybook:
# if: ${{ github.ref != 'refs/heads/__release-pkg'}}
# runs-on: ubuntu-20.04
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [16.14]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/version-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ on: [pull_request]
jobs:
version-check:
if: ${{ github.head_ref != '__release-pkg' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.14]
node-version: [22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # https://yarnpkg.com/features/release-workflow/#commit-history
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
Expand Down
52 changes: 0 additions & 52 deletions .yarn/plugins/@yarnpkg/plugin-constraints.cjs

This file was deleted.

35 changes: 0 additions & 35 deletions .yarn/plugins/@yarnpkg/plugin-exec.cjs

This file was deleted.

363 changes: 0 additions & 363 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

Loading

0 comments on commit 0193091

Please sign in to comment.