mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-05-12 14:07:52 +02:00
40 lines
979 B
YAML
40 lines
979 B
YAML
name: check and push
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
stack-test:
|
|
uses: ./.github/workflows/stack-test.yml
|
|
|
|
flake-no-push:
|
|
name: flake check (no push)
|
|
if: github.event_name != 'push'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v31
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: stackage-infrastructure
|
|
- run: nix build
|
|
- run: nix flake check
|
|
|
|
flake-push:
|
|
name: flake check and push
|
|
if: github.event_name == 'push'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v31
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: stackage-infrastructure
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
- run: nix build
|
|
- run: nix flake check
|