Skip to content

Commit 1fb6f8a

Browse files
committed
add ci/cd
1 parent 0b7235f commit 1fb6f8a

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Nix
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
name: Checks
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: "Install Nix ❄️"
18+
uses: cachix/install-nix-action@v31.2.0
19+
20+
- name: "Install Cachix ❄️"
21+
uses: cachix/cachix-action@v16
22+
with:
23+
name: profunktor
24+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
25+
26+
- name: "Nix flake check ❄️"
27+
run: |
28+
nix flake check --all-systems -L
29+
nix buil .#sbt -L

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dev-tools
22
=========
3+
[![CI Status](https://github.com/profunktor/dev-tools/workflows/Nix/badge.svg)](https://github.com/profunktor/dev-tools/actions)
34

45
[Scala](https://www.scala-lang.org/) development tools powered by [Nix](https://nixos.org/).

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
};
2929
in
3030
{
31-
devShell = pkgs.mkShell {
31+
devShells.default = pkgs.mkShell {
3232
name = "profunktor-scala-dev-shell";
3333

3434
buildInputs = with pkgs; [

0 commit comments

Comments
 (0)