2023-12-30 20:16:34 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-01-14 01:11:57 +00:00
|
|
|
- "master"
|
2023-12-30 20:16:34 +00:00
|
|
|
pull_request:
|
|
|
|
# all PRs on all branches
|
2020-09-17 22:44:58 +00:00
|
|
|
name: "tests/windows"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-12-30 19:02:10 +00:00
|
|
|
go-version: [1.21.x]
|
2020-09-17 22:44:58 +00:00
|
|
|
platform: [windows-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
|
|
steps:
|
2024-01-14 23:16:18 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
2020-09-17 22:44:58 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
|
2024-01-14 23:16:18 +00:00
|
|
|
- uses: actions/cache@v3
|
2020-09-17 22:44:58 +00:00
|
|
|
with:
|
2024-01-14 23:16:18 +00:00
|
|
|
path: ~\go\pkg\mod
|
2020-09-17 22:44:58 +00:00
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: ${{ runner.os }}-go-
|
|
|
|
|
|
|
|
- name: Build and test
|
|
|
|
run: |
|
|
|
|
go run make.go -v
|
|
|
|
devcam test
|