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.
This commit is contained in:
Robert Helgesson 2020-06-09 20:30:10 +02:00
parent b33802ca7f
commit 5a97bf30d4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 17 additions and 9 deletions

17
.github/workflows/test.yml vendored Normal file
View file

@ -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

View file

@ -1,9 +0,0 @@
language: nix
os:
- linux
- osx
script:
- nix-shell . -A install
- nix-shell --pure --max-jobs 10 tests -A run.all