From 1c4856f72e46edb5ed9d70ffd8cca8ddea0b2af6 Mon Sep 17 00:00:00 2001 From: Ares <75481906+ice-ares@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:18:35 +0200 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..690aea7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up latest Go version + uses: actions/setup-go@v4 + with: + go-version: 'stable' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -timeout 20m -tags=test -v -cover -coverprofile=cover.out -covermode atomic ./...