CI: use actions/setup-go@v2, and fix go matrix
the matrix used "go-versions", but it was later referenced
as "matrix.go-version", which may have been the cause we
did not install multiple versions.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn
3 years ago
3 | 3 | test: |
4 | 4 | strategy: |
5 | 5 | matrix: |
6 | go-versions: [1.12.x, 1.13.x, 1.14.x] | |
6 | go: ["1.12.x", "1.13.x", "1.14.x"] | |
7 | 7 | platform: [ubuntu-latest] |
8 | 8 | runs-on: ${{ matrix.platform }} |
9 | 9 | steps: |
10 | - name: Install Go | |
11 | uses: actions/setup-go@v1 | |
10 | - name: Install Go ${{ matrix.go }} | |
11 | uses: actions/setup-go@v2 | |
12 | 12 | with: |
13 | go-version: ${{ matrix.go-version }} | |
13 | go-version: ${{ matrix.go }} | |
14 | 14 | - name: Checkout code |
15 | 15 | uses: actions/checkout@v2 |
16 | 16 | - name: Test |