From 6683ee248b1ec7e3eea7deb8df6c3023eedbf65e Mon Sep 17 00:00:00 2001 From: iChenLei Date: Sun, 8 Dec 2024 13:27:59 +0800 Subject: [PATCH] chore: add all test --- .github/workflows/ci.yml | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3991f5ca5..d2cabdfe9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,31 +9,31 @@ on: branches: [main, master] jobs: - # platform_spec_test: - # name: 'Tests on ${{matrix.os}} with node${{matrix.node}}' - # strategy: - # matrix: - # # Test all mainstream operating system - # os: [ubuntu-latest, macos-latest, windows-latest] - # node: [22] - # runs-on: ${{ matrix.os }} - # steps: - # # Pull repo to test machine - # - uses: actions/checkout@v2 - # # Configures the node version used on GitHub-hosted runners - # - uses: actions/setup-node@v2 - # with: - # # The Node.js version to configure - # node-version: ${{ matrix.node }} - # - name: Install npm dependencies - # run: npm install - # - name: Print put node & npm version - # # Output useful info for debugging. - # run: node --version && npm --version - # - name: Install chromium - # run: npx playwright install chromium - # - name: Run unit test - # run: npm run test + platform_spec_test: + name: 'Tests on ${{matrix.os}} with node${{matrix.node}}' + strategy: + matrix: + # Test all mainstream operating system + os: [ubuntu-latest, macos-latest, windows-latest] + node: [22] + runs-on: ${{ matrix.os }} + steps: + # Pull repo to test machine + - uses: actions/checkout@v2 + # Configures the node version used on GitHub-hosted runners + - uses: actions/setup-node@v2 + with: + # The Node.js version to configure + node-version: ${{ matrix.node }} + - name: Install npm dependencies + run: npm install + - name: Print put node & npm version + # Output useful info for debugging. + run: node --version && npm --version + - name: Install chromium + run: npx playwright install chromium + - name: Run unit test + run: npm run test fast_node_test: name: 'Tests on ${{matrix.os}} with node${{matrix.node}}'