Skip to content

Bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0 (#22) #78

Bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0 (#22)

Bump github.com/alecthomas/kingpin/v2 from 2.3.2 to 2.4.0 (#22) #78

Workflow file for this run

name: Continuous Integration
on:
push:
tags-ignore:
- 'v*.*.*'
- 'snapshot-*'
branches:
- '**'
pull_request:
jobs:
lint:
name: "Lint"
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.1
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: |
go mod download
- name: Install golangci-lint
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint --version
- name: Lint
run: |
golangci-lint run --color=always -c .golangci.yml ./...
test:
name: "Test"
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.1
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: |
go mod download
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Test
run: |
go run ./build test
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
goveralls "-coverprofile=profile.cov" "-service=github" "-parallel" "-flagname=${{ matrix.os }}-caretakerd"
# notifies that all test jobs are finished.
finish:
name: "Finish"
needs: test
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.1
- name: Cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage (finish)
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
goveralls "-parallel-finish" "-service=github"