Skip to content

Use magic nix cache and nix develop command in CI #14

Use magic nix cache and nix develop command in CI

Use magic nix cache and nix develop command in CI #14

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Cache Clojure dependencies
uses: actions/cache@v3
with:
key: clj-${{ github.repository }}-${{ hashFiles('**/deps.edn') }}
restore-keys: clj-${{ github.repository }}-
path: |
~/.gitlibs
~/.m2/repository
- name: Run tests
run: nix develop -c clj -T:build ci :snapshot true