...

Text file src/github.com/containerd/fifo/.github/workflows/ci.yml

Documentation: github.com/containerd/fifo/.github/workflows

     1name: CI
     2
     3on:
     4  push:
     5    branches: [ main ]
     6  pull_request:
     7    branches: [ main ]
     8
     9jobs:
    10
    11  checks:
    12    name: Project Checks
    13    runs-on: ubuntu-22.04
    14    timeout-minutes: 5
    15
    16    steps:
    17    - uses: actions/checkout@v3
    18      with:
    19        path: src/github.com/containerd/fifo
    20        fetch-depth: 25
    21    - uses: actions/setup-go@v3
    22      with:
    23        go-version: 1.20.x
    24    - uses: containerd/project-checks@v1.1.0
    25      with:
    26        working-directory: src/github.com/containerd/fifo
    27
    28  linters:
    29    name: Linters
    30    runs-on: ${{ matrix.os }}
    31    timeout-minutes: 10
    32
    33    strategy:
    34      matrix:
    35        go-version: [1.20.x]
    36        os: [ubuntu-22.04, macos-12, windows-2022]
    37
    38    steps:
    39      - uses: actions/checkout@v3
    40        with:
    41          path: src/github.com/containerd/fifo
    42
    43      - name: Set env
    44        shell: bash
    45        run: |
    46          echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
    47          echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
    48
    49      - uses: golangci/golangci-lint-action@v3
    50        with:
    51          version: v1.51.1
    52          working-directory: src/github.com/containerd/fifo
    53
    54  tests:
    55    name: Tests
    56    runs-on: ubuntu-22.04
    57    timeout-minutes: 5
    58
    59    steps:
    60      - uses: actions/checkout@v3
    61        with:
    62          path: src/github.com/containerd/fifo
    63
    64      - uses: actions/setup-go@v3
    65        with:
    66          go-version: 1.20.x
    67
    68      - run: make test
    69        working-directory: src/github.com/containerd/fifo

View as plain text