diff --git a/.gitea/workflows/golangci-lint.yml b/.gitea/workflows/golangci-lint.yml new file mode 100644 index 0000000..ce0f2a2 --- /dev/null +++ b/.gitea/workflows/golangci-lint.yml @@ -0,0 +1,30 @@ +name: golangci-lint +on: + push: + pull_request: + +permissions: + contents: read + # Optional: allow read access to pull requests. Use with `only-new-issues` option. + # pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # all history for all branches and tags + + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + check-latest: true + cache: false + + - name: golangci-lint + uses: golangci/golangci-lint-action@v8 + with: + version: v2.3.1 \ No newline at end of file diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..a29633e --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,27 @@ +name: Test + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # all history for all branches and tags + + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + check-latest: true + cache: false + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y make + + - name: Run make check-all + run: make test \ No newline at end of file