github.com/charmbracelet/glamour@v0.7.0/.github/workflows/build.yml (about)

     1  name: build
     2  on: [push, pull_request]
     3  jobs:
     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        COLORTERM: "truecolor"
    13        COLORFGBG: "7;0"
    14        TERM: "xterm-256color"
    15      steps:
    16        - name: Install Go
    17          uses: actions/setup-go@v5
    18          with:
    19            go-version: ${{ matrix.go-version }}
    20  
    21        - name: Checkout code
    22          uses: actions/checkout@v4
    23  
    24        - name: Download Go modules
    25          run: go mod download
    26  
    27        - name: Build
    28          run: go build -v ./...
    29  
    30        - name: Test
    31          run: go test ./...
    32          if: matrix.os != 'windows-latest'