run the test script in CI

This commit is contained in:
HuangYi 2022-05-20 14:48:28 +08:00
parent fc5adcc530
commit 7dca9453ba
No known key found for this signature in database
GPG key ID: 58776091521E8B17
2 changed files with 22 additions and 0 deletions

View file

@ -2,6 +2,8 @@ name: CI
on:
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.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