...

Text file src/github.com/zeebo/xxh3/.github/workflows/ci.yml

Documentation: github.com/zeebo/xxh3/.github/workflows

     1name: ci
     2
     3permissions:
     4  contents: read
     5
     6on:
     7  push:
     8    branches:
     9      - master
    10  pull_request:
    11
    12jobs:
    13  test:
    14    strategy:
    15      matrix:
    16        go-version: [1.16.x, 1.17.x]
    17    runs-on: ubuntu-latest
    18    steps:
    19      - name: Install Go
    20        uses: actions/setup-go@331ce1d993939866bb63c32c6cbbfd48fa76fc57 # v2.1.4
    21        with:
    22          go-version: ${{ matrix.go-version }}
    23      - name: Checkout code
    24        uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
    25        with:
    26          persist-credentials: false
    27      - name: Test
    28        run: go test -v ./...
    29
    30  gen:
    31    runs-on: ubuntu-latest
    32    steps:
    33      - name: Install Go
    34        uses: actions/setup-go@331ce1d993939866bb63c32c6cbbfd48fa76fc57 # v2.1.4
    35        with:
    36          go-version: 1.17.x
    37      - name: Checkout code
    38        uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
    39        with:
    40          persist-credentials: false
    41      - name: Generate
    42        working-directory: avo
    43        run: go generate -v -x
    44      - name: Git Status
    45        run: |
    46          git diff
    47          test -z "$(git status --porcelain)"

View as plain text