From f9a548bfc6a7bb1513772122dc3407b043404ad5 Mon Sep 17 00:00:00 2001 From: David Przybilla Date: Sat, 23 Sep 2023 18:49:44 +0900 Subject: [PATCH] test github action --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5062c92 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Tests + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - uses: cachix/install-nix-action@v17 + + - name: Run tests + run: nix develop --command go test + + - name: Build TODOs Docker image + run: nix build