| skipped 9 lines |
10 | 10 | | |
11 | 11 | | build: |
12 | 12 | | runs-on: ubuntu-latest |
| 13 | + | strategy: |
| 14 | + | matrix: |
| 15 | + | go: ["1.17", "1.18", "1.19", "1.20"] |
13 | 16 | | steps: |
14 | | - | - uses: actions/checkout@v2 |
| 17 | + | - name: Set up Go ${{ matrix.go }} |
| 18 | + | uses: actions/setup-go@v4 |
| 19 | + | with: |
| 20 | + | go-version: ${{ matrix.go }} |
| 21 | + | id: go |
15 | 22 | | |
16 | | - | - name: Set up Go |
17 | | - | uses: actions/setup-go@v2 |
18 | | - | with: |
19 | | - | go-version: 1.16 |
| 23 | + | - name: Check out code into the Go module directory |
| 24 | + | uses: actions/checkout@v3 |
20 | 25 | | |
21 | | - | - name: Build |
22 | | - | run: go build -v ./... |
| 26 | + | - name: Build |
| 27 | + | run: go build -v ./... |
23 | 28 | | |
24 | | - | - name: Test |
25 | | - | run: go test -v ./... |
| 29 | + | - name: Test |
| 30 | + | run: go test -v ./... |
26 | 31 | | |