Skip to content

Commit

Permalink
Add frontend linting job
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 17, 2024
1 parent cc8339c commit 3022872
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
File renamed without changes.
27 changes: 27 additions & 0 deletions .github/workflows/lint-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Lint frontend
run: pnpm run lint
9 changes: 6 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@ jobs:
tag=$(cut -c 1-7 <<< $GITHUB_SHA)
echo "sha-tag=$tag" >> $GITHUB_OUTPUT
lint:
uses: ./.github/workflows/lint.yaml
lint-backend:
uses: ./.github/workflows/lint-backend.yaml

lint-frontend:
uses: ./.github/workflows/lint-frontend.yaml

build-backend:
if: ${{ needs.changes.outputs.backend == 'true' }}
needs: [changes, generate-inputs, lint]
needs: [changes, generate-inputs, lint-backend]
uses: ./.github/workflows/build-deploy.yaml
with:
sha-tag: ${{ needs.generate-inputs.outputs.sha-tag }}
Expand Down

0 comments on commit 3022872

Please sign in to comment.