Codebase list golang-github-vbauerster-mpb / cc2ca9a .github / workflows / test.yml
cc2ca9a

Tree @cc2ca9a (Download .tar.gz)

test.yml @cc2ca9araw · history · blame

name: test

on:
  push:
    tags:
      - v*
    branches:
      - master
      - v*
  pull_request:

permissions:
  contents: read
  pull-requests: read

jobs:
  test:
    strategy:
      matrix:
        go-version: ['stable', 'oldstable']
        os: [ubuntu-latest, macos-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-go@v4
      with:
        go-version: ${{ matrix.go-version }}
    - run: go test -race ./...