From 35beb82b22e952bd22c42d1787f44ae882bcd342 Mon Sep 17 00:00:00 2001 From: cam Date: Thu, 26 Sep 2024 08:40:09 +1200 Subject: [PATCH] Use github actions instead of travis --- .github/workflows/goreleaser.yml | 15 +++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 15 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/goreleaser.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000..4c25ec2 --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,15 @@ +name: Go CI and Release + +on: + push: + branches: + - '**' + tags: + - '*' + pull_request: + branches: + - '**' + +jobs: + build: + uses: TheCacophonyProject/github-actions-templates/.github/workflows/go-ci-release.yml@v0.1.1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c6486b6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: go - -go: - - "1.22.x" - -script: - - go mod tidy - - git diff --exit-code || (echo "Please run 'go mod tidy' to clean up the 'go.mod' and 'go.sum' files. Your go version should match the one used with travis."; false) - - go vet ./... - - go test ./... - - curl -sL https://git.io/goreleaser | bash -s check - -# calls goreleaser -deploy: -- provider: script - skip_cleanup: true - script: curl -sL https://git.io/goreleaser | bash - on: - tags: true - go: "1.22.x"