1name: Go 2 3on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 9jobs: 10 build: 11 12 runs-on: ubuntu-latest 13 strategy: 14 matrix: 15 go-version: [ '1.16', '1.17', '1.18', '1.19' ] 16 17 steps: 18 - uses: actions/checkout@v3 19 - name: Setup Go ${{ matrix.go-version }} 20 uses: actions/setup-go@v3 21 with: 22 go-version: ${{ matrix.go-version }} 23 - name: Test 24 run: go test ./... 25