github.com/vc42/parquet-go@v0.0.0-20240320194221-1a9adb5f23f5/.github/workflows/test.yml (about)

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