From 3372cc965dde4f45cc55855b5628adff133c5a3e Mon Sep 17 00:00:00 2001 From: Russ Garrett Date: Fri, 12 Nov 2021 11:08:10 +0000 Subject: [PATCH] Initial replacement of Travis with GH Actions --- .github/workflows/main.yml | 17 +++++++++++++++++ .travis.yml | 27 --------------------------- 2 files changed, 17 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..107a4c5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +name: Main +on: + - pull_request + - push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: "^1.17.3" + - name: Check Formatting + run: gofmt -d -e . + - name: Tests + run: go test -v ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3a8d96d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -dist: xenial -language: go -go: -- 1.11 -env: -- PATH=/home/travis/gopath/bin:$PATH -script: -- "! gofmt -d . | read" -- go test -v ./... -before_deploy: -- rm -Rf ./dist -- go get github.com/mitchellh/gox -- gox -ldflags="-X main.branch=$TRAVIS_TAG -X main.revision=$TRAVIS_COMMIT" -osarch="linux/amd64 - linux/386 linux/arm darwin/amd64 darwin/386" -output="dist/{{.OS}}_{{.Arch}}_{{.Dir}}" -deploy: - provider: releases - api_key: - secure: AXhg+m8loR8mQZMK1T+rWvK4yiOmfdUvGFl8MIjwINaSh7NXMR2mqRB1Kx0UgEAdYhkkevp9NjJscedha9vQmPmiTxImn4Mr3S1hfLBfWKjmTkpe2itSARJLwzpv09skay1q7dbBpZ7t2Xwe4HExuX1vlkU6Kixv3Z+GlUgkmH3c1db4h01ANLbCdabtBQaqjfh7OMteNg2fBAKxANfoNPAVzD8PzIcm9ffvU9BEW6UKVMIxc5yygVBlaGqyu6JcKvWRaT9JfDF1G0iJVawy1jSfhlMUeRfA2aDEE+ne1meLp6KD0JqocXy+t1fZejlAcYVJigmdeMpQXsfKgXtQ1hLE/6wIqP3CzBX4/6x2FDHh2Mb9IfjKjH5mlUvk7vQpbfmN7k04YXuugczCZS7fm3pTPkZgnLNrdCx6miAi/G84ssO3vaMpW3uYOlcmsESBAYNkVFLzkw4ggfwBFWkK3s81CxUaUxxH15vuvYLejvBWkFgCDTLq2Kmn1bbts9xx9v1hGtEtqLwYq1HVMXxs507zJqpvQKVD8DsWC6kqp7+dzIGNEi0ixqM3lZVKU5iqC8mXkw7HMZZ3jOE+YbTFOxrMqJrbS5z9eFSe37Wz7cFfpb4Z7YXSy3E8JMKMcu9L8mxtHFOm9AUC1v3ySMz9zI3kqy+6zs2Axb+LjLSzPBw= - file: - - dist/linux_amd64_irccat - - dist/linux_386_irccat - - dist/linux_arm_irccat - - dist/darwin_amd64_irccat - - dist/darwin_386_irccat - skip_cleanup: true - on: - tags: true