diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..41c412a7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,40 @@ +name: Test + +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Build + run: go build -v ./... + + test: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Test + run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 98b4785b..00000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go -go: - - 1.16.x -services: - - docker -script: - - make test - - make security-scan diff --git a/Makefile b/Makefile index 6f908182..ebfdc6ad 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,6 @@ build: format go mod tidy go build $(LDFLAGS) -security-scan: - go get github.com/securego/gosec/cmd/gosec - gosec -no-fail ./... - release-builds: rm -rf build mkdir build