docs: AI podcast guide part 1 #2167
Workflow file for this run
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: Tests | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
env: | |
NODE_OPTIONS: --max-old-space-size=4096 | |
NEXT_PUBLIC_VERCEL_URL: nitric.io | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
uses: cypress-io/github-action@v5 | |
with: | |
runTests: false | |
install-command: yarn --frozen-lockfile | |
- name: Run format linting | |
run: yarn format:check | |
- name: Run spellcheck test | |
run: yarn test:spellcheck | |
test-broken-links: | |
runs-on: ubuntu-latest | |
needs: [tests] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cypress tests 🧪 | |
uses: cypress-io/github-action@v5 | |
with: | |
headless: true | |
config: video=false | |
browser: chrome | |
spec: cypress/e2e/broken-links.cy.ts | |
build: yarn cypress:build | |
start: yarn start | |
wait-on: 'http://localhost:3000' | |
env: | |
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }} | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots-broken-links | |
path: cypress/screenshots | |
test-a11y: | |
runs-on: ubuntu-latest | |
needs: [tests] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cypress tests 🧪 | |
uses: cypress-io/github-action@v5 | |
with: | |
headless: true | |
config: video=false | |
browser: chrome | |
spec: cypress/e2e/a11y.cy.ts | |
build: yarn cypress:build | |
start: yarn start | |
wait-on: 'http://localhost:3000' | |
env: | |
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }} | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots-a11y | |
path: cypress/screenshots | |
test-seo: | |
runs-on: ubuntu-latest | |
needs: [tests] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cypress tests 🧪 | |
uses: cypress-io/github-action@v5 | |
with: | |
headless: true | |
config: video=false | |
browser: chrome | |
spec: cypress/e2e/seo.cy.ts | |
build: yarn cypress:build | |
start: yarn start | |
wait-on: 'http://localhost:3000' | |
env: | |
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }} | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots-seo | |
path: cypress/screenshots |