Skip to content

Bump path-to-regexp and express in /backend #331

Bump path-to-regexp and express in /backend

Bump path-to-regexp and express in /backend #331

Workflow file for this run

name: Site Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run linting for JS and CSS
run: |
npm run lint:js
npm run lint:css
- name: Run tests
run: npm test
- name: Run Storybook tests
run: npm run chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Build project
run: npm run build
- name: Validate HTML
run: npx html-validator-cli --file dist/**/*.html --format=text
- name: Validate CSS
run: npx stylelint "dist/**/*.css"
- name: Validate JS
run: npx eslint "dist/**/*.js"
- name: Verify images
run: python ./verify_images.py
deploy:
runs-on: ubuntu-latest
needs: build-and-test
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist