Bump @storybook/addon-a11y in /{{cookiecutter.project_name}}/frontend #2398
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: Test cookiecutter scaffolder | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: "actions/setup-python@v2" | |
with: | |
python-version: "3.10" | |
- name: Install cookiecutter | |
run: | | |
python -m pip install --upgrade pip | |
pip install cookiecutter | |
- name: Run cookiecutter | |
run: | | |
set -x | |
rm -rf Company-Project | |
cookiecutter . --no-input | |
- name: Archive generated-project | |
uses: actions/upload-artifact@v2 | |
with: | |
name: generated-project | |
path: ./Company-Project | |
retention-days: 1 | |
backend: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- run: rm -rf Company-Project | |
- name: Restore generated-project | |
uses: actions/download-artifact@v2 | |
with: | |
name: generated-project | |
path: Company-Project | |
- name: Create docker-compose config for running boilerplate tests | |
run: | | |
cp docker-compose-circleci.yml Company-Project/docker-compose-circleci.yml | |
- name: Build image | |
run: | | |
cd Company-Project | |
chmod +x src/docker-entrypoint.sh | |
docker-compose -f docker-compose-circleci.yml build | |
- name: Verify backend scaffolder | |
run: | | |
cd Company-Project | |
set -x | |
docker-compose -f docker-compose-circleci.yml run --rm python python manage.py new_page --name=Article | |
- name: Run tests on container | |
run: | | |
cd Company-Project | |
docker-compose -f docker-compose-circleci.yml run --rm python test | |
docker-compose -f docker-compose-circleci.yml run --rm python typecheck | |
docker-compose -f docker-compose-circleci.yml run --rm python lint | |
frontend: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: "actions/setup-node@v2" | |
with: | |
node-version: "18" | |
- run: rm -rf Company-Project | |
- name: Restore generated-project | |
uses: actions/download-artifact@v2 | |
with: | |
name: generated-project | |
path: Company-Project | |
- name: Run frontend tests | |
run: | | |
cd Company-Project/frontend | |
npm ci | |
npm run test:ci | |
IGNORE_SENTRY=1 npm run build | |
npm run build-storybook |