github.com/julianthome/gore@v0.0.0-20231109011145-b3a6bbe6fe55/.github/workflows/ci.yaml (about)

     1  name: CI
     2  
     3  on:
     4    push:
     5      branches:
     6      - main
     7    pull_request:
     8  
     9  permissions:
    10    contents: read
    11  
    12  jobs:
    13    test:
    14      name: Test
    15      runs-on: ubuntu-latest
    16      strategy:
    17        matrix:
    18          go: [1.21.x, 1.20.x, 1.19.x]
    19        fail-fast: false
    20      steps:
    21      - name: Checkout code
    22        uses: actions/checkout@v4
    23      - name: Setup Go
    24        uses: actions/setup-go@v4
    25        with:
    26          go-version: ${{ matrix.go }}
    27      - name: Install gocode
    28        run: go install github.com/mdempsky/gocode@latest
    29      - name: Build
    30        run: make build
    31      - name: Test
    32        run: make test
    33      - name: Lint
    34        run: make lint