Skip to content

Commit

Permalink
Merge pull request #27 from DataChefHQ/refactor/optimize-ci
Browse files Browse the repository at this point in the history
refactor: add cache to CI
  • Loading branch information
farbodahm authored Nov 7, 2024
2 parents aa59f23 + 53ff7ea commit 47baf44
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ on:
- main

jobs:
# Mac tests and Ubuntu tests are separated so that Ubuntu tests can
# run on both PRs and main; and Mac tests only on main branch.
ubuntu_tests:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv

- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
Expand All @@ -42,9 +43,7 @@ jobs:
curl -s --unix-socket $HOME/.colima/default/docker.sock http/_ping
- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
Expand Down

0 comments on commit 47baf44

Please sign in to comment.