...

Text file src/cdr.dev/slog/.github/workflows/ci.yml

Documentation: cdr.dev/slog/.github/workflows

     1name: ci
     2
     3on:
     4  push:
     5    branches:
     6      - main
     7
     8  pull_request:
     9    branches:
    10      - main
    11
    12  workflow_dispatch:
    13
    14jobs:
    15  fmt:
    16    runs-on: ubuntu-20.04
    17    steps:
    18      - uses: actions/checkout@v2
    19
    20      - name: make fmt
    21        uses: ./ci/image
    22        with:
    23          args: make fmt
    24
    25  lint:
    26    runs-on: ubuntu-20.04
    27    steps:
    28      - uses: actions/checkout@v2
    29
    30      - name: make lint
    31        uses: ./ci/image
    32        with:
    33          args: make lint
    34
    35  test:
    36    runs-on: ubuntu-20.04
    37    steps:
    38      - uses: actions/checkout@v2
    39
    40      - name: make test
    41        uses: ./ci/image
    42        with:
    43          args: make test
    44        env:
    45          COVERALLS_TOKEN: ${{ secrets.github_token }}
    46
    47      - name: Upload coverage.html
    48        uses: actions/upload-artifact@v2
    49        with:
    50          name: coverage
    51          path: ci/out/coverage.html

View as plain text