mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
chore: remove super linter and add tests
This commit is contained in:
parent
1fff91afa8
commit
8f5bbd9b30
31
.github/workflows/checks.yml
vendored
31
.github/workflows/checks.yml
vendored
@ -16,7 +16,7 @@ env:
|
||||
|
||||
jobs:
|
||||
matrix:
|
||||
name: go matrix
|
||||
name: matrix
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
gomod: ${{ steps.gomod.outputs.matrix }}
|
||||
@ -27,8 +27,8 @@ jobs:
|
||||
matrix=$(find . -type f -name "go.mod" -print0 | xargs -0 -n1 dirname | sort --unique | jq -R -s -c 'split("\n")[:-1]')
|
||||
echo "${matrix}"
|
||||
echo "::set-output name=matrix::${matrix}"
|
||||
go_lint:
|
||||
name: go lint
|
||||
lint:
|
||||
name: lint
|
||||
needs: matrix
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
@ -46,17 +46,20 @@ jobs:
|
||||
with:
|
||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
||||
working-directory: ${{ matrix.gomod }}
|
||||
lint:
|
||||
name: lint
|
||||
test:
|
||||
name: test
|
||||
needs: matrix
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
gomod: ${{ fromJson(needs.matrix.outputs.gomod) }}
|
||||
env:
|
||||
GOFLAGS: -mod=readonly
|
||||
GOPROXY: https://proxy.golang.org
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: github/super-linter@v4.8.7
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
DEFAULT_BRANCH: main
|
||||
IGNORE_GITIGNORED_FILES: true
|
||||
VALIDATE_ALL_CODEBASE: false
|
||||
VALIDATE_JSCPD: false
|
||||
VALIDATE_GO: false
|
||||
# - run: go test -v ./...
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
- run: go test -v ./...
|
||||
|
||||
|
||||
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ check: test lint
|
||||
.PHONY: test
|
||||
## Run tests
|
||||
test:
|
||||
gotestsum --format short-verbose ./...
|
||||
go test -v ./...
|
||||
|
||||
.PHONY: lint
|
||||
## Run linter
|
||||
|
||||
@ -194,6 +194,7 @@ func (s *KeelTestSuite) runServer() {
|
||||
go func(waitChan chan string) {
|
||||
waitChan <- "finished"
|
||||
s.svr.Run()
|
||||
time.Sleep(time.Second * 3)
|
||||
}(waitChan)
|
||||
l.Debug("waiting for server process to start")
|
||||
<-waitChan
|
||||
|
||||
Loading…
Reference in New Issue
Block a user