From d0f6d23ce7580bfd34b05d0c74312dc24eafd13a Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 25 Aug 2024 16:50:24 +0200 Subject: [PATCH] Build and test pipeline --- .gitea/workflows/build.yml | 22 +++++++++++++++++++ .../workflows/{golangci-lint.yml => lint.yml} | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/build.yml rename .gitea/workflows/{golangci-lint.yml => lint.yml} (94%) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..6e2ceb1 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build +on: + push: + branches: + - main + pull_request: + +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - name: Install dependencies + run: go get . + - name: Build + run: go build -v ./... + - name: Test + run: go test -v ./... diff --git a/.gitea/workflows/golangci-lint.yml b/.gitea/workflows/lint.yml similarity index 94% rename from .gitea/workflows/golangci-lint.yml rename to .gitea/workflows/lint.yml index 873678e..77bbbd5 100644 --- a/.gitea/workflows/golangci-lint.yml +++ b/.gitea/workflows/lint.yml @@ -1,4 +1,4 @@ -name: golangci-lint +name: Lint on: push: branches: