github.com/cloudwego/dynamicgo@v0.2.6-0.20240519101509-707f41b6b834/.github/workflows/push-check-linux-x64.yml (about) 1 name: Push Check Linux-X64 2 3 on: [ push, pull_request ] 4 5 jobs: 6 build: 7 strategy: 8 matrix: 9 go-version: [1.16.x, 1.20.x] 10 runs-on: ubuntu-latest 11 steps: 12 - uses: actions/checkout@v2 13 14 - name: Set up Go 15 uses: actions/setup-go@v2 16 with: 17 go-version: ${{ matrix.go-version }} 18 19 - uses: actions/cache@v2 20 with: 21 path: ~/go/pkg/mod 22 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} 23 restore-keys: | 24 ${{ runner.os }}-go- 25 26 - name: Unit Test 27 run: | 28 go test -race ./...