2020-02-10 18:19:25 -08:00
|
|
|
on: [push, pull_request]
|
2019-12-05 22:36:49 -08:00
|
|
|
name: goimagehash workflow
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-05-03 07:52:14 -07:00
|
|
|
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, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x]
|
2019-12-05 22:36:49 -08:00
|
|
|
platform: [ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
2023-05-03 07:52:14 -07:00
|
|
|
uses: actions/setup-go@v4
|
2019-12-05 22:36:49 -08:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Set GOPATH
|
|
|
|
run: |
|
|
|
|
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)"
|
|
|
|
id: gopath
|
2020-12-27 09:35:04 -08:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
2019-12-05 22:36:49 -08:00
|
|
|
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
path: src/github.com/corona10/goimagehash
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: go get -t -v ./...
|
2020-02-10 18:19:25 -08:00
|
|
|
|
2019-12-06 17:50:05 -08:00
|
|
|
- name: Test
|
|
|
|
run: go test ./...
|