Skip to content

Commit

Permalink
Tests: Also test MV3
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiber committed Aug 17, 2024
1 parent fc9a607 commit 3c9a1d6
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,52 @@ jobs:
if: ${{ steps.betatest.outcome == 'failure' }}
run: echo "::warning::Beta tests failed"

test_v3:
name: Test V3
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
- name: Cache pnpm modules
uses: actions/cache@v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
pnpm-
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Find version
run: |
npm run env | grep npm_package_version >> $GITHUB_ENV
- name: Get build files
uses: actions/download-artifact@v3
with:
name: enhancer_for_nebula_v3-${{ env.npm_package_version }}
path: |
extension-dist/
# for headfull chrome
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Clear jest cache
run: npx jest --clear-cache
- name: Run all tests
run: xvfb-run --auto-servernum npm run test -- --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YT_API_KEY: ${{ secrets.YOUTUBE_KEY }}
NEBULA_PASS: ${{ secrets.NEBULA_PASS }}
NEBULA_USER: ${{ secrets.NEBULA_USER }}

release:
name: Release
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3c9a1d6

Please sign in to comment.