diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/.github/workflows/go.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/backend/.github/workflows/go.yaml b/backend/.github/workflows/go.yaml new file mode 100644 index 0000000..3b3c251 --- /dev/null +++ b/backend/.github/workflows/go.yaml @@ -0,0 +1,37 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v5 + with: + go-version: stable + - name: Build + run: go build -v ./... + - name: Test + run: go test -v ./... + + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v5 + with: + go-version: stable + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.59
\ No newline at end of file |