2019-12-06 17:50:05 -08:00
|
|
|
on: [pull_request]
|
|
|
|
name: goimagehash workflow
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-01-21 05:47:06 -08:00
|
|
|
go-version: [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, 1.21.x]
|
2019-12-06 17:50:05 -08:00
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
2023-05-03 07:52:14 -07:00
|
|
|
uses: actions/setup-go@v4
|
2019-12-06 17:50:05 -08:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
with:
|
2024-05-01 18:06:48 -07:00
|
|
|
path: src/gitea.narnian.us/lordwelch/goimagehash
|
2019-12-06 17:50:05 -08:00
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: go test ./...
|