Skip to content

Commit

Permalink
ci: attempt separation 2
Browse files Browse the repository at this point in the history
  • Loading branch information
garomonegro committed Apr 9, 2024
1 parent 9413afc commit 403f8cc
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 38 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-test-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
build:
name: build-test-coverage
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ^1.19
id: go
- uses: actions/checkout@v4
- run: make build
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./coverage.txt # optional
flags: unittests # optional
fail_ci_if_error: true # optional (default = false)
verbose: true
32 changes: 0 additions & 32 deletions .github/workflows/codecov.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: golangci-lint
name: CI
on:
push:
tags:
Expand All @@ -9,16 +9,15 @@ on:
permissions:
contents: read
jobs:
golangci:
name: lint
build:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
- uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
args: --timeout 3m --verbose
19 changes: 19 additions & 0 deletions .github/workflows/syntax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
build:
name: syntax
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ^1.19
id: go
- uses: actions/checkout@v4
- run: make check-syntax
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ BINARY := kubedog
COVER_FILE := coverage.txt


all: generate check-dirty-repo build
all: check-syntax build

check-syntax: generate check-dirty-repo

generate: download
go generate kubedog.go
Expand Down

0 comments on commit 403f8cc

Please sign in to comment.