Merge pull request #197 from cachix/dev-restructure #3
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: "Build" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- run: nix profile install nixpkgs#devenv | |
- name: Build | |
run: devenv shell -- pnpm build | |
# Check that build was committed | |
- name: Verify latest build | |
run: git diff --exit-code | |
test: | |
needs: [build] | |
uses: ./.github/workflows/test.yml | |
secrets: inherit |