From 0c686c77c4ac6f7add3262107685693ada8ae3b0 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sat, 1 Aug 2020 13:56:00 +0000 Subject: [PATCH] ci: add GitHub Actions check (#6) --- .github/dependabot.yml | 6 ++++++ .github/workflows/nix.yml | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/nix.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..9fcd07a --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,16 @@ +name: Nix +on: [ push ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + # Nix Flakes doesn't work on shallow clones + fetch-depth: 0 + - uses: cachix/install-nix-action@v10 + with: + install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20200618_377345e/install + - run: echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf + - run: nix flake check