Skip to content

Fix schedules docs #1466

Fix schedules docs

Fix schedules docs #1466

Workflow file for this run

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@v2
- 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
- name: Build Website
run: yarn build
env:
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
- name: Cache Build
uses: actions/cache@v2
id: restore-build
with:
path: |
.next
public
key: ci-docs-test-${{ github.sha }}
test-broken-links:
runs-on: ubuntu-latest
needs: [tests]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore Build
uses: actions/cache@v2
id: restore-build
with:
path: |
.next
public
key: ci-docs-test-${{ github.sha }}
- 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: node scripts/build-pages-fixture.js
start: yarn start
wait-on: 'http://localhost:3000'
- name: Upload screenshots
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
test-a11y:
runs-on: ubuntu-latest
needs: [tests]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore Build
uses: actions/cache@v2
id: restore-build
with:
path: |
.next
public
key: ci-docs-test-${{ github.sha }}
- name: Cypress tests 🧪
uses: cypress-io/github-action@v5
with:
headless: true
config: video=false
browser: chrome
spec: cypress/e2e/a11y.cy.ts
build: node scripts/build-pages-fixture.js
start: yarn start
wait-on: 'http://localhost:3000'
- name: Upload screenshots
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
test-seo:
runs-on: ubuntu-latest
needs: [tests]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore Build
uses: actions/cache@v2
id: restore-build
with:
path: |
.next
public
key: ci-docs-test-${{ github.sha }}
- name: Cypress tests 🧪
uses: cypress-io/github-action@v5
with:
headless: true
config: video=false
browser: chrome
spec: cypress/e2e/seo.cy.ts
build: node scripts/build-pages-fixture.js
start: yarn start
wait-on: 'http://localhost:3000'
- name: Upload screenshots
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots