File: ci.yml

package info (click to toggle)
golang-github-compose-spec-compose-go 2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,744 kB
  • sloc: makefile: 35
file content (46 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
on: [push, pull_request]
name: Continuous integration

permissions:
  contents: read

jobs:
  validate:
    name: validate
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
      - name: Checkout
        uses: actions/checkout@v5
      - name: Check license
        run: DOCKER_BUILDKIT=1 make check-license
      - name: Check deepcopy
        run: |
          make deepcopy
          if [ -n "$(git status --porcelain)" ]; then
            echo >&2 'ERROR: DeepCopy is not up to date with code. Please run "make deepcopy"'
          fi

  test:
    strategy:
      matrix:
        go-version: ['1.23', '1.24']
        platform: [ubuntu-latest, macos-latest, windows-latest]
    runs-on: ${{ matrix.platform }}
    timeout-minutes: 10
    steps:
    - name: Checkout code
      uses: actions/checkout@v5
    - name: Install Go
      uses: actions/setup-go@v6
      with:
        go-version: ${{ matrix.go-version }}
        check-latest: true
        cache: true
    - uses: golangci/golangci-lint-action@v8
      with:
        version: v2.1.6
        args: --verbose
        skip-cache: true
    - name: Test
      run: go test ./...