diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..2bc6fd7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,15 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +jobs: + ci: + uses: datum-cloud/actions/.github/workflows/ci-basic.yaml@v1.26.0 + with: + run: go mod verify diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml deleted file mode 100644 index cc506e2..0000000 --- a/.github/workflows/testing.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: testing - -on: - push: - paths: - - '**/*.go' - - 'go.mod' - - 'go.sum' - -jobs: - testing: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v6 - - name: Set up Go - uses: actions/setup-go@v6 - with: - go-version-file: go.mod - - name: Verify dependencies - run: go mod verify - - name: Build - run: go build ./... - - name: Test - run: go test -timeout 5m ./...