From 7f10a57059be337801ebe9ba4e5164153de3059c Mon Sep 17 00:00:00 2001 From: James Eversole Date: Tue, 21 Jan 2025 12:24:11 -0600 Subject: [PATCH] init Gitea Actions --- .gitea/workflows/test-and-build.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/test-and-build.yml diff --git a/.gitea/workflows/test-and-build.yml b/.gitea/workflows/test-and-build.yml new file mode 100644 index 0000000..81b370c --- /dev/null +++ b/.gitea/workflows/test-and-build.yml @@ -0,0 +1,36 @@ +name: Test and Build + +on: + push: + branches: + - main + - feat/cicd + pull_request: + types: + - opened + - synchronize + +jobs: + test: + container: + image: nixos/nix:latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install dependencies and run tests + run: | + nix develop --command cabal test + + build: + needs: test + container: + image: nixos/nix:latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Build binary + run: | + nix build + ls -alh ./result/bin/tricu