This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
move premium check to middleware #9003
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: Build | |
on: | |
pull_request: | |
paths: | |
- pages/** | |
- tests/** | |
- components/** | |
- config/** | |
- tailwind.config.js | |
- package.json | |
- next.config.mjs | |
- models/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
mongo: | |
image: mongo | |
ports: | |
- 27017:27017 | |
strategy: | |
matrix: | |
step: [lint, build] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- name: install dependencies | |
run: npm ci | |
- name: run ${{ matrix.step }} | |
run: npm run ${{ matrix.step }} | |
tests: | |
needs: build | |
runs-on: ubuntu-latest | |
services: | |
mongo: | |
image: mongo | |
ports: | |
- 27017:27017 | |
strategy: | |
fail-fast: false | |
matrix: | |
shardIndex: [1, 2, 3, 4, 5] | |
shardTotal: [5] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- name: install dependencies | |
run: npm ci | |
- name: Install Playwright's dependencies | |
run: npx playwright install chromium | |
- name: run tests | |
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | |
- uses: test-summary/[email protected] | |
with: | |
paths: "results.xml" |