From 91eca25c30bef129e332196ce30f9ab36d093248 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 6 Nov 2020 18:30:22 +0100 Subject: [PATCH] Remove travis (#1193) This also removed the codecov that was still done. We could potentially re-add as an action, but I don't really miss it. Add testing for 1.14 and 1.15 (it's very fast now). Fuzzing needs to stay on 1.14 due to brokeness of some kind. Signed-off-by: Miek Gieben --- .github/workflows/codeql-analysis.yml | 22 -------------------- .github/workflows/go.yml | 30 +++++++++++++++++++-------- .travis.yml | 17 --------------- 3 files changed, 21 insertions(+), 48 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index eddf5b97..19482bca 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -4,7 +4,6 @@ on: push: branches: [master, ] pull_request: - # The branches below must be a subset of the branches above branches: [master] schedule: - cron: '0 23 * * 5' @@ -18,37 +17,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. fetch-depth: 2 - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - run: git checkout HEAD^2 if: ${{ github.event_name == 'pull_request' }} - # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v1 - # Override language selection by uncommenting this and choosing your languages - # with: - # languages: go, javascript, csharp, python, cpp, java - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v1 - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6b21011e..2559cd73 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,19 +5,18 @@ jobs: build: name: Build and Test runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.14', '1.15' ] steps: - - name: Set up Go 1.14 - uses: actions/setup-go@v1 + - name: Set up Go + uses: actions/setup-go@v2 with: - go-version: 1.14 - id: go + go-version: ${{ matrix.go }} - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: Get dependencies - run: go get -v -t -d ./... + - name: Check out code + uses: actions/checkout@v2 - name: Build run: go build -v ./... @@ -25,6 +24,19 @@ jobs: - name: Test run: go test -v ./... + fuzz: + name: Fuzz + runs-on: ubuntu-latest + steps: + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.14' + + - name: Check out code + uses: actions/checkout@v2 + - name: Fuzz run: | export GOPATH=$GOROOT diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7d9b1727..00000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: go -sudo: false - -go: - - 1.14.x - - 1.15.x - - tip - -env: - - GO111MODULE=on - -script: - - go generate ./... && test `git ls-files --modified | wc -l` = 0 - - go test -race -v -bench=. -coverprofile=coverage.txt -covermode=atomic ./... - -after_success: - - bash <(curl -s https://codecov.io/bash)