Merge pull request #37 from yihuang/ci-test

run the test script in CI
This commit is contained in:
adisbladis 2022-05-20 18:17:58 +08:00 committed by GitHub
commit a47254f93d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View file

@ -2,6 +2,8 @@ name: CI
on: on:
pull_request: pull_request:
paths-ignore:
- '**.md'
push: push:
paths-ignore: paths-ignore:
- '**.md' - '**.md'

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

@ -0,0 +1,20 @@
name: Test
on:
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ubuntu-latest
env:
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"
steps:
- uses: cachix/install-nix-action@v12
- uses: actions/checkout@v1
- run: |
make -C tests