From 8f7f03f9dc2a842b132312e857df973690362590 Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Mon, 19 Dec 2022 09:49:59 +0100 Subject: [PATCH] Switch to GitHub Actions Having to repeatedly re-affirm to Travis I'm still doing Open Source is a nuisance. --- .github/workflows/linux-ci.yml | 18 ++++++++++++++++++ .github/workflows/windows-ci.yml | 13 +++++++++++++ .travis.yml | 27 --------------------------- 3 files changed, 31 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/linux-ci.yml create mode 100644 .github/workflows/windows-ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml new file mode 100644 index 0000000..135e729 --- /dev/null +++ b/.github/workflows/linux-ci.yml @@ -0,0 +1,18 @@ +name: Linux CI + +on: + push: + branches: [master] + pull_request: + +jobs: + validate: + runs-on: ubuntu-22.04 + steps: + - name: Install golangci-lint + # golangci-lint is required by test.sh. Latest version here if you want + # to bump it, version number is at the end of the "curl | sh" + # commandline below: + # https://github.com/golangci/golangci-lint/releases/latest + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.50.1 + - run: ./test.sh diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml new file mode 100644 index 0000000..811c74d --- /dev/null +++ b/.github/workflows/windows-ci.yml @@ -0,0 +1,13 @@ +name: Windows CI + +on: + push: + branches: [master] + pull_request: + +jobs: + validate: + runs-on: windows-2022 + steps: + - run: go build + - run: go test -timeout 30s ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8f4289e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -# From: https://blog.travis-ci.com/2022-01-28-pullrequests -# -# "Assuming you want to build all PRs, something like the following will do the -# trick": -if: (type = push AND branch = master) OR (type = pull_request) - -language: go -go: - - 1.16.x - -jobs: - include: - - os: linux - dist: xenial - script: - # golangci-lint is required by test.sh. Latest version here if you want - # to bump it, version number is at the end of the "curl | sh" - # commandline below: - # https://github.com/golangci/golangci-lint/releases/latest - - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.48.0 - - - ./test.sh - - - os: windows - script: - - go build - - go test -timeout 30s ./...