diff options
author | Robert Helgesson <robert@rycee.net> | 2020-06-09 20:30:10 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-06-09 20:48:22 +0200 |
commit | 5a97bf30d498e84de87bc247b6fa4f4115b68c6d (patch) | |
tree | 95215fe8070a5045c71eac371827ddf142a6124e /.github/workflows/test.yml | |
parent | b33802ca7f0675fa8f64dd0f322ab7a57e45ba6a (diff) |
ci: switch from Travis CI to GitHub Actions
Unfortunately Travis CI seems stuck on Nix 2.0 on macOS, which no
longer works with Nixpkgs unstable.
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/test.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000000..56696b4fec6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,17 @@ +name: "Test" +on: + pull_request: + push: +jobs: + tests: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v10 + with: + nix_path: nixpkgs=channel:nixos-unstable + - run: nix-shell . -A install + - run: nix-shell --pure --max-jobs 4 tests -A run.all |