github.com/segmentio/parquet-go@v0.0.0-20230712180008-5d42db8f0d47/.github/workflows/test.yml (about) 1 name: Test 2 on: 3 push: 4 branches: 5 - main 6 pull_request: 7 branches: 8 - '*' 9 10 jobs: 11 test: 12 strategy: 13 matrix: 14 go: 15 - '1.17.x' 16 - '1.18.x' 17 - '1.19.x' 18 tags: 19 - '' 20 - purego 21 label: 22 - [self-hosted, linux, arm64, segment] 23 - ubuntu-latest 24 25 runs-on: ${{ matrix.label }} 26 27 env: 28 PARQUETGODEBUG: tracebuf=1 29 30 steps: 31 - uses: actions/checkout@v3 32 33 - name: Setup Go ${{ matrix.go }} 34 uses: actions/setup-go@v3 35 with: 36 go-version: ${{ matrix.go }} 37 38 - name: Download Dependencies 39 run: go mod download 40 41 - name: Run Tests 42 run: go test -trimpath -race -tags=${{ matrix.tags }} ./... 43 44 - name: Run Benchmarks 45 run: go test -trimpath -short -tags=${{ matrix.tags }} -run '^$' -bench . -benchtime 1x ./... 46 47 format: 48 runs-on: ubuntu-latest 49 50 steps: 51 - uses: actions/checkout@v3 52 53 - name: Setup Go ${{ matrix.go }} 54 uses: actions/setup-go@v3 55 with: 56 go-version: 1.19.x 57 58 - name: Validate formatting 59 run: make format 60 61 # https://github.com/golangci/golangci-lint/issues/2649 62 # lint: 63 # runs-on: ubuntu-latest 64 # steps: 65 # - uses: actions/checkout@v3 66 67 # - uses: actions/setup-go@v3 68 # with: 69 # go-version: 1.18.x 70 71 # - name: golangci-lint 72 # uses: golangci/golangci-lint-action@v3 73 # with: 74 # version: latest