-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (39 loc) · 976 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
go:
- "1"
- "1.22"
- "1.21"
- "1.20"
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
path: src/github.com/shogo82148/goa-v1
persist-credentials: false
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: |
go version
echo "GO111MODULE=on" >> "$GITHUB_ENV"
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
shell: bash
- run: make depend
working-directory: src/github.com/shogo82148/goa-v1
- run: make test
working-directory: src/github.com/shogo82148/goa-v1