From 8cfa2916ec368285c269b4dfcc921e3d0f228cf7 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Sat, 24 Jun 2023 23:12:56 +0200 Subject: [PATCH] feat: create first version of a build-check gitea action workflow --- .gitea/workflows/build_check.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/build_check.yaml diff --git a/.gitea/workflows/build_check.yaml b/.gitea/workflows/build_check.yaml new file mode 100644 index 0000000..d40e34c --- /dev/null +++ b/.gitea/workflows/build_check.yaml @@ -0,0 +1,29 @@ +name: Gitea Build Check +run-name: ${{ gitea.actor }} is testing the build +on: + pull_request: + branches: ["master"] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Go environment + uses: actions/setup-go@v3.3.1 + with: + # The Go version to download (if necessary) and use. Supports semver spec and ranges. + go-version: 1.20 # optional + # Path to the go.mod file. + go-version-file: ./go.mod # optional + # Set this option to true if you want the action to always check for the latest available version that satisfies the version spec + check-latest: true # optional + # Used to specify whether caching is needed. Set to true, if you'd like to enable caching. + cache: true # optional + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... -json -coverprofile=coverage.out > test-report.out