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: