forked from LaconicNetwork/kompose
* feat: migrate from libcompose to compose-go libcompose has been deprecated since summer 2021 in favor of https://github.com/compose-spec/compose-go. Kompose should now be able to load all versions of compose. * chore: replace golint with staticcheck golint has been deprecated. Recommended replacement is staticcheck.
27 lines
609 B
YAML
27 lines
609 B
YAML
name: lint
|
|
on:
|
|
pull_request:
|
|
jobs:
|
|
lint:
|
|
strategy:
|
|
matrix:
|
|
go: [1.18, 1.19]
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v3
|
|
- name: "Install golang"
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
- name: "Run go vet"
|
|
run: "go vet ./pkg/..."
|
|
- name: "Run staticcheck"
|
|
uses: dominikh/staticcheck-action@v1
|
|
with:
|
|
cache-key: "${{ matrix.go }}"
|
|
install-go: false
|
|
version: "latest"
|
|
working-directory: "pkg"
|