Skip to content

Commit

Permalink
Merge 4e1b414 into 8be960c
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Dec 6, 2019
2 parents 8be960c + 4e1b414 commit 2aa99ba
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on: [pull_request]
name: goimagehash workflow
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]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Set GOPATH
run: |
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)"
id: gopath

- name: Checkout code
uses: actions/checkout@v1

- 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
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
flags: unittests
name: codecov-goimagehash

0 comments on commit 2aa99ba

Please sign in to comment.