Skip to content

Feature/website discontinued #464

Feature/website discontinued

Feature/website discontinued #464

Workflow file for this run

name: Build and Test
on:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js 18 environment
uses: actions/setup-node@v3
with:
node-version: 'lts/hydrogen'
- name: Install root dependencies
uses: bahmutov/npm-install@v1
- name: Check if the page builds
run: npm run-script build
- name: Zip build
run: zip -r public.zip public -x "public/assets/screenshots/*" "public/assets/img/blog/*" "public/assets/img/science/*"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: public
retention-days: 1
path: public.zip
test:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test:
["app_to_web","blog","check_anchor_links","check_videos","eventRegistration","faq","faq_link_attr","mime"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Setup Node.js 18 environment
uses: actions/setup-node@v3
with:
node-version: 'lts/hydrogen'
- name: Install npm dependencies
run: npm ci
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: public
- name: Unzip build
run: unzip public.zip
- name: Test the website
run: npx start-server-and-test start-server http://localhost:8000 "cypress run -s 'cypress/e2e/${{ matrix.test }}.cy.js' --e2e --headless --browser chrome"
env:
# See issue https://github.com/cypress-io/cypress/issues/25357
ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu'
NO_COLOR: true
TERM: xterm