Removing console statement and fix linting, so that the CI runs through. #33
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,pull_request_target] | |
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 | |
env: | |
WORKING_DIRECTORY: ./frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Frontend | Build | |
run: npm install && npm run build | |
working-directory: ${{env.WORKING_DIRECTORY}} | |
docker-production: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Build Docker Production - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
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: | |
- name: Checkout code | |
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 | |
env: | |
WORKING_DIRECTORY: ./frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Frontend | Build Storybook | |
run: npm install && npm run storybook:build | |
working-directory: ${{env.WORKING_DIRECTORY}} | |
lint: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Lint - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
env: | |
WORKING_DIRECTORY: ./frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Frontend | Lint | |
run: npm install && npm run test:lint | |
working-directory: ${{env.WORKING_DIRECTORY}} | |
unit: | |
if: needs.files-changed.outputs.frontend == 'true' | |
name: Unit - Frontend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
env: | |
WORKING_DIRECTORY: ./frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Frontend | Unit | |
run: npm install && npm run test:unit | |
working-directory: ${{env.WORKING_DIRECTORY}} |