github.com/thepudds/swisstable@v0.0.0-20221011152303-9c77dc657777/.github/workflows/test.yml (about)

     1  # With thanks to:
     2  #    https://github.com/rogpeppe/go-internal/blob/master/.github/workflows/test.yml
     3  #    https://github.com/mvdan/github-actions-golang
     4  #    https://github.com/thepudds/fzgen/blob/main/.github/workflows/test.yml
     5  
     6  on: [push, pull_request]
     7  name: Test
     8  jobs:
     9    test:
    10      strategy:
    11        fail-fast: false
    12        matrix:
    13          go-version: [1.19.x, 1.18.x]
    14          os: [ubuntu-latest, macos-latest, windows-latest]
    15      runs-on: ${{ matrix.os }}
    16      defaults:
    17        run:
    18          # juggling $PATH is different in Windows PowerShell,
    19          # so let's just use bash on Windows too.
    20          shell: bash
    21      steps:
    22      - name: Install Go
    23        uses: actions/setup-go@v2
    24        with:
    25          stable: false
    26          go-version: ${{ matrix.go-version }}
    27      - name: Checkout code
    28        uses: actions/checkout@v2
    29      - name: Test (standalone)
    30        run: |
    31          go test .