From 5b9961e78a031fe369ff87155a504edeb96a31bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Tr=C5=A1ko?= Date: Fri, 3 Jul 2020 10:25:51 +0100 Subject: [PATCH] Using install-nix-actions per Justin's advice For more information see comments in justinwoo/easy-dhall-nix#26 --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5233cbb..ea89dd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,8 @@ name: My Workflow -on: [push] + +on: + pull_request: + push: jobs: my_job: @@ -11,9 +14,6 @@ jobs: os: [ubuntu-latest] steps: - - uses: actions/checkout@master - - name: nix - run: | - curl https://nixos.org/nix/install | sh - . "$HOME"/.nix-profile/etc/profile.d/nix.sh - ./test.bash + - uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v9 + - run: ./tests.bash