...

Text file src/github.com/coreos/go-systemd/v22/.github/workflows/go.yml

Documentation: github.com/coreos/go-systemd/v22/.github/workflows

     1name: Go
     2on:
     3  push:
     4    branches: [main]
     5  pull_request:
     6    branches: [main]
     7
     8permissions:
     9  contents: read
    10
    11env:
    12  # Minimum supported Go toolchain
    13  ACTION_MINIMUM_TOOLCHAIN: "1.12.x"
    14
    15jobs:
    16  build:
    17    name: "Build"
    18    runs-on: ubuntu-latest
    19    strategy:
    20      matrix:
    21        go: ['1.17.x', '1.18.x', '1.19.x']
    22    steps:
    23      - run: sudo apt-get -qq update
    24      - name: Install libsystemd-dev
    25        run: sudo apt-get install libsystemd-dev
    26      - uses: actions/checkout@v3
    27      - name: Setup go
    28        uses: actions/setup-go@v3
    29        with:
    30          go-version: ${{ matrix.go }}
    31      - name: Go fmt
    32        run: ./scripts/ci-runner.sh go_fmt
    33      - name: Go build (source)
    34        run: ./scripts/ci-runner.sh build_source
    35      - name: Go build (tests)
    36        run: ./scripts/ci-runner.sh build_tests
    37      - name: Go vet
    38        run: ./scripts/ci-runner.sh go_vet
    39  build-minimum:
    40    name: "Build on minimum supported toolchain"
    41    runs-on: ubuntu-latest
    42    steps:
    43      - run: sudo apt-get -qq update
    44      - name: Install libsystemd-dev
    45        run: sudo apt-get install libsystemd-dev
    46      - uses: actions/checkout@v3
    47      - name: Setup go
    48        uses: actions/setup-go@v3
    49        with:
    50          go-version: ${{ env['ACTION_MINIMUM_TOOLCHAIN'] }}
    51      - name: Go fmt
    52        run: ./scripts/ci-runner.sh go_fmt
    53      - name: Go build (source)
    54        run: ./scripts/ci-runner.sh build_source
    55      - name: Go build (tests)
    56        run: ./scripts/ci-runner.sh build_tests
    57      - name: Go vet
    58        run: ./scripts/ci-runner.sh go_vet

View as plain text