diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index c068186..0000000 --- a/.drone.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -kind: pipeline -name: default - -clone: - depth: 50 - -steps: - - name: build - image: golang:1.18 - commands: - - go test -race -cover -v ./... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..83a7675 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,30 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23' + + - name: Lint + uses: golangci/golangci-lint-action@v6 + with: + version: 'v1.60' + + - name: Test + run: go test -v ./... diff --git a/go.mod b/go.mod index 6fd5307..d9b3494 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/jbub/sqlcommenter -go 1.18 +go 1.23