diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 122bc69..d75ca57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.6.x, 1.7.x, 1.8.x, 1.9.x, 1.10.x, 1.11.x, 1.12.x, 1.13.x] + go-version: [1.6.x, 1.7.x, 1.8.x, 1.9.x, 1.10.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: @@ -25,12 +25,5 @@ jobs: - name: Install run: go get -t -v ./... - - name: Test and coverage - run: go test -coverprofile=coverage.txt -covermode=atomic - - - name: Upload codecoverage to CodeCov - uses: codecov/codecov-action@v1.0.4 - with: - token: ${{secrets.CODECOV_TOKEN}} - file: ./coverage.txt - flags: unittests + - name: Test + run: go test ./... diff --git a/.github/workflows/ci_gomodule.yml b/.github/workflows/ci_gomodule.yml new file mode 100644 index 0000000..72419a0 --- /dev/null +++ b/.github/workflows/ci_gomodule.yml @@ -0,0 +1,21 @@ +on: [pull_request] +name: goimagehash workflow +jobs: + test: + strategy: + matrix: + go-version: [1.11.x, 1.12.x, 1.13.x] + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v1 + with: + path: src/github.com/corona10/goimagehash + + - name: Test + run: go test ./...