Skip to content

Commit 5d8d7ba

Browse files
committed
ci: add workflow for running tests
1 parent 3590c73 commit 5d8d7ba

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Run tests"
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: ["synchronize"]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repo
13+
uses: actions/checkout@v4
14+
- name: Install Lix
15+
uses: samueldr/lix-gha-installer-action@v1
16+
- name: Run `mix deps.get` in a Nix shell
17+
run: nix develop -c mix deps.get
18+
- name: Run `mix test` in a Nix shell
19+
run: nix develop -c mix test

shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pkgs.mkShell {
1717
nixfmt-rfc-style
1818
nil
1919

20-
cargo
20+
rustup
2121
exiftool
2222
];
2323

0 commit comments

Comments
 (0)