Skip to content

Merge pull request #94 from Questionable-Content-Extensions/dependabo… #53

Merge pull request #94 from Questionable-Content-Extensions/dependabo…

Merge pull request #94 from Questionable-Content-Extensions/dependabo… #53

Workflow file for this run

name: CI
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- name: Install Node modules
run: npm ci
- name: Run ESLint
run: npx eslint .
- name: Ensure everything builds
run: npm run build
# Having no tests makes this command exit with an error
# status. You can uncomment it once there's at least
# one test.
#- name: Run tests
# run: npm test
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Storybook tests
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on http://127.0.0.1:6006/ && npm run test-storybook"
- name: Deploy Storybook
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static
target-folder: storybook
single-commit: true