Merge branch 'master' into sidebar-style #470
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: frontend | |
on: push | |
jobs: | |
files-changed: | |
name: Detect File Changes - frontend/ | |
runs-on: ubuntu-latest | |
outputs: | |
frontend: ${{ steps.filter.outputs.frontend }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/[email protected] | |
id: filter | |
with: | |
filters: | | |
frontend: | |
- '.github/workflows/**/*' | |
- 'frontend/**/*' | |
build: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Build - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: './.tool-versions' | |
- name: Frontend | Build | |
run: npm install && npm run build | |
working-directory: ./frontend | |
docker-production: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Build Docker Production - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Frontend | Build Docker Production | |
run: docker compose -f docker-compose.yml build frontend | |
docker-development: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Build Docker Development - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Frontend | Build Docker Development | |
run: docker compose build frontend frontend-storybook | |
storybook: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Build Storybook - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: './.tool-versions' | |
- name: Frontend | Build Storybook | |
run: npm install && npm run storybook:build | |
working-directory: ./frontend | |
lint: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Lint - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: './.tool-versions' | |
- name: Frontend | Lint | |
run: npm install && npm run test:lint | |
working-directory: ./frontend | |
unit: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Unit - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: './.tool-versions' | |
- name: Frontend | Unit | |
run: npm install && npm run test:unit | |
working-directory: ./frontend |