Skip to content

Commit

Permalink
Add simple CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
supersven committed Feb 4, 2025
1 parent 33a43c6 commit 11e1da9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

# Trigger the workflow on push or pull request, but only for the master branch
on:
pull_request:
push:
branches: [master]
tags:
- "v*"
workflow_dispatch:

# INFO: The following configuration block ensures that only one build runs per branch,
# which may be desirable for projects with a costly build process.
# Remove this block from the CI workflow to let each CI job run to completion.
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: General linting steps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27

- name: nix flake check
run: nix flake check

- name: treefmt - check format
run: nix fmt -- --ci

- name: Haskell build
run: nix build .

0 comments on commit 11e1da9

Please sign in to comment.