github.com/anthonyme00/gomarkdoc@v1.0.0/.github/workflows/test.yml (about)

     1  name: Test
     2  on:
     3    push:
     4      branches:
     5        - master
     6    pull_request:
     7  jobs:
     8    test:
     9      strategy:
    10        matrix:
    11          platform:
    12            - ubuntu-latest
    13            - macos-latest
    14            - windows-latest
    15      runs-on: ${{matrix.platform}}
    16      steps:
    17        - name: Install Go
    18          uses: actions/setup-go@v1
    19          with:
    20            go-version: 1.20.x
    21        - name: Checkout code
    22          uses: actions/checkout@v2
    23        - name: Lint
    24          uses: magefile/mage-action@v1
    25          with:
    26            version: latest
    27            args: lint
    28        - name: Doc Verify
    29          uses: magefile/mage-action@v1
    30          with:
    31            version: latest
    32            args: docVerify
    33        - name: Test
    34          uses: magefile/mage-action@v1
    35          with:
    36            version: latest
    37            args: test
    38        - name: Upload Coverage
    39          if: ${{ matrix.platform == 'ubuntu-latest' }}
    40          uses: codecov/codecov-action@v2