diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..3636e28 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,22 @@ +--- +name: build-and-test +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ^1.24 + - name: Build binary + run: go build -v ./... + - name: Run tests + run: go test -json ./... > test-results.json + - name: Upload artefacts + uses: actions/upload-artifact@v4 + with: + name: test-results + path: test-results.json