Skip to content

dont index non production sites #3530

dont index non production sites

dont index non production sites #3530

Workflow file for this run

---
name: Run tests
on:
pull_request:
branches:
- main
jobs:
build_and_test:
runs-on: ubuntu-latest
env:
CI: true
NODE_ENV: test
steps:
- name: Log node version
run: node --version
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Check TechDocs
run: yarn tech-docs:build
- name: Lint
run: yarn lint
- name: Unit test
run: yarn test:unit
- name: Build static site
run: yarn build
env:
GATSBY_ALGOLIA_APP_ID: ${{ secrets.GATSBY_ALGOLIA_APP_ID }}
GATSBY_ALGOLIA_SEARCH_KEY: ${{ secrets.GATSBY_ALGOLIA_SEARCH_KEY }}
ALGOLIA_SKIP_INDEXING: true
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
GATSBY_RECAPTCHAS_ENABLED: false
- name: Cypress run
uses: cypress-io/github-action@v4
with:
start: yarn serve --port 8001
- name: Upload screenshots
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- name: Upload videos
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: cypress/videos