...

Text file src/github.com/muesli/termenv/.github/workflows/build.yml

Documentation: github.com/muesli/termenv/.github/workflows

     1name: build
     2on: [push, pull_request]
     3jobs:
     4  build:
     5    strategy:
     6      matrix:
     7        go-version: [~1.17, ^1]
     8        os: [ubuntu-latest, macos-latest, windows-latest]
     9    runs-on: ${{ matrix.os }}
    10    env:
    11      GO111MODULE: "on"
    12    steps:
    13      - name: Install Go
    14        uses: actions/setup-go@v4
    15        with:
    16          go-version: ${{ matrix.go-version }}
    17
    18      - name: Checkout code
    19        uses: actions/checkout@v3
    20
    21      - name: Download Go modules
    22        run: go mod download
    23
    24      - name: Build
    25        run: go build -v ./...
    26
    27      - name: Test
    28        run: go test ./...
    29        if: matrix.platform != 'windows-latest'

View as plain text