1on: [push, pull_request] 2name: Test 3jobs: 4 test: 5 strategy: 6 matrix: 7 go-version: 8 - 1.11.x 9 - 1.12.x 10 - 1.13.x 11 - 1.14.x 12 - 1.15.x 13 - 1.16.x 14 - 1.17.x 15 - 1.18.x 16 os: 17 - ubuntu-latest 18 runs-on: ${{ matrix.os }} 19 steps: 20 - name: Install Go 21 uses: actions/setup-go@v2 22 with: 23 go-version: ${{ matrix.go-version }} 24 - name: Checkout code 25 uses: actions/checkout@v2 26 - name: Test 27 run: go test -v ./...