From 7dca9453ba58f02abd1549d7c21370a49d0dc539 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Fri, 20 May 2022 14:48:28 +0800 Subject: [PATCH] run the test script in CI --- .github/workflows/ci.yml | 2 ++ .github/workflows/test.yml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee1869a..73b6384 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: CI on: pull_request: + paths-ignore: + - '**.md' push: paths-ignore: - '**.md' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..703bb22 --- /dev/null +++ b/.github/workflows/test.yml @@ -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