github.com/moov-io/imagecashletter@v0.10.1/.github/workflows/go.yml (about)

     1  name: Go
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  jobs:
    10    build:
    11      name: Go Build
    12      runs-on: ${{ matrix.os }}
    13      strategy:
    14        matrix:
    15          os: [ubuntu-latest, macos-latest, windows-latest]
    16      steps:
    17      - name: Set up Go 1.x
    18        uses: actions/setup-go@v4
    19        with:
    20          go-version: stable
    21        id: go
    22  
    23      - name: Check out code into the Go module directory
    24        uses: actions/checkout@v2
    25  
    26      - name: Install make (Windows)
    27        if: runner.os == 'Windows'
    28        run: choco install -y make mingw
    29  
    30      - name: Check
    31        run: make check
    32  
    33      - name: Upload Code Coverage
    34        if: runner.os == 'Linux'
    35        run: bash <(curl -s https://codecov.io/bash)
    36  
    37    docker:
    38      name: Docker Build
    39      runs-on: ubuntu-latest
    40      steps:
    41      - name: Set up Go 1.x
    42        uses: actions/setup-go@v4
    43        with:
    44          go-version: stable
    45        id: go
    46  
    47      - name: Check out code into the Go module directory
    48        uses: actions/checkout@v2
    49  
    50      - name: Docker Build
    51        run: make docker