...

Text file src/github.com/gorilla/mux/.github/workflows/test.yml

Documentation: github.com/gorilla/mux/.github/workflows

     1name: Test
     2on:
     3  push:
     4    branches:
     5      - main
     6  pull_request:
     7    branches:
     8      - main
     9permissions:
    10  contents: read
    11jobs:
    12  unit:
    13    strategy:
    14      matrix:
    15        go: ['1.20','1.21']
    16        os: [ubuntu-latest, macos-latest, windows-latest]
    17      fail-fast: true
    18    runs-on: ${{ matrix.os }}
    19    steps:
    20      - name: Checkout Code
    21        uses: actions/checkout@v3
    22
    23      - name: Setup Go ${{ matrix.go }}
    24        uses: actions/setup-go@v4
    25        with:
    26          go-version: ${{ matrix.go }}
    27          cache: false
    28
    29      - name: Run Tests
    30        run: go test -race -cover -coverprofile=coverage -covermode=atomic -v ./...
    31
    32      - name: Upload coverage to Codecov
    33        uses: codecov/codecov-action@v3
    34        with:
    35          files: ./coverage

View as plain text