mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-05-10 21:17:52 +02:00
31 lines
734 B
YAML
31 lines
734 B
YAML
# CI that runs on pull requests and pushes to master.
|
|
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
stack-test:
|
|
name: stack test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: ./.github/actions/stack-test
|
|
|
|
flake-check:
|
|
name: flake check and push
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: cachix/install-nix-action@v31
|
|
- uses: DeterminateSystems/magic-nix-cache-action@v13
|
|
- uses: cachix/cachix-action@v17
|
|
with:
|
|
name: stackage-infrastructure
|
|
- run: nix build
|
|
- run: nix flake check
|