...

Text file src/github.com/vektah/gqlparser/v2/.github/workflows/manual-go-test.yml

Documentation: github.com/vektah/gqlparser/v2/.github/workflows

     1name: Manual Go Test Run
     2
     3on:
     4  workflow_dispatch:
     5
     6# When a new revision is pushed to a PR, cancel all in-progress CI runs for that
     7# PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency
     8concurrency:
     9  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
    10  cancel-in-progress: true
    11
    12jobs:
    13  go-test:
    14    name: Go Test (${{ matrix.os }})
    15    runs-on: ${{ matrix.run }}
    16    strategy:
    17      fail-fast: false
    18      matrix:
    19        include:
    20          - os: linux
    21            run: ubuntu-latest
    22          # MacOS is disabled due to the high cost multiplier on GH Actions.
    23          #- os: darwin
    24          #  run: macos-latest
    25          # Windows not allowed currently because of line-ending conversion issues.
    26          #- os: windows
    27          #  run: windows-latest
    28    steps:
    29      - name: Check out code
    30        uses: actions/checkout@v3
    31
    32      - id: go_version
    33        name: Read go version
    34        run: echo "::set-output name=go_version::$(cat .go-version)"
    35
    36      - name: Install Go (${{ steps.go_version.outputs.go_version }})
    37        uses: actions/setup-go@v3
    38        with:
    39          go-version: ${{ steps.go_version.outputs.go_version }}
    40
    41      - name: Unit Test Golang
    42        run: go test ./...
    43        timeout-minutes: 30

View as plain text