sigs.k8s.io/external-dns@v0.14.1/.github/workflows/ci.yml (about)

     1  name: Go
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  permissions:
    10    contents: read  #  to fetch code (actions/checkout)
    11  
    12  jobs:
    13  
    14    build:
    15      permissions:
    16        contents: read  #  to fetch code (actions/checkout)
    17        checks: write  #  to create a new check based on the results (shogo82148/actions-goveralls)
    18  
    19      name: Build
    20      runs-on: ubuntu-latest
    21      steps:
    22  
    23      - name: Set up Go 1.x
    24        uses: actions/setup-go@v5
    25        with:
    26          go-version: '1.21'
    27        id: go
    28  
    29      - name: Check out code into the Go module directory
    30        uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
    31  
    32      - name: Install CI
    33        run: |
    34          go get -v -t -d ./...
    35  
    36      - name: Install additional CI for nektos/act
    37        run: |
    38              apt update
    39              apt install -y make gcc libc-dev git
    40        if: github.actor == 'nektos/act'
    41  
    42      - name: Test
    43        run: make test
    44  
    45      - name: Send coverage
    46        uses: shogo82148/actions-goveralls@v1
    47        with:
    48          path-to-profile: profile.cov
    49        if: github.actor != 'nektos/act'