Skip to content

Commit

Permalink
ci: add lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
conorsch committed Nov 12, 2024
1 parent fd7afb8 commit 910f2eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,26 @@ permissions:
contents: read
pull-requests: write
jobs:
lint:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: install nix
uses: DeterminateSystems/nix-installer-action@main
- name: load nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: run linters
run: nix develop --command just lint

build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
needs:
# don't run if lint fails
- lint
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 910f2eb

Please sign in to comment.