Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix linter errors * fix for flaky redis unit test * timeout adjustment * e2e-test -> ci-build * setup docker buildx * added concurrency cancelation * changed job name * Test comment out problematic eventually * added comment * workflow file rename * workflow name changed * skip go generate * added make generate * removed unused go generate * setup golang with caches if needed * matrix revamp * activate gofor e2e * fix matrix * test * eventually timing * removed linter workflow in favor of make matrix * expect -> Eventually * renamed workflow
- Loading branch information
Showing
10 changed files
with
89 additions
and
94 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Makefile | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
permissions: | ||
security-events: write | ||
actions: read | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
make: | ||
name: make | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- make: build | ||
go: true | ||
docker: false | ||
- make: test | ||
go: true | ||
docker: false | ||
- make: race | ||
go: true | ||
docker: false | ||
- make: docker-build | ||
go: false | ||
docker: true | ||
- make: e2e-test | ||
go: true | ||
docker: true | ||
- make: goreleaser | ||
go: false | ||
docker: false | ||
- make: lint | ||
go: true | ||
docker: false | ||
|
||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Golang with cache | ||
uses: magnetikonline/action-golang-cache@v3 | ||
if: matrix.go == true | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
if: matrix.docker == true | ||
|
||
- name: make ${{ matrix.make }} | ||
run: make ${{ matrix.make }} | ||
if: matrix.make != 'goreleaser' | ||
env: | ||
GO_SKIP_GENERATE: 1 | ||
|
||
- name: Upload results to codecov | ||
uses: codecov/codecov-action@v3 | ||
if: matrix.make == 'test' | ||
|
||
- name: Check GoReleaser configuration | ||
uses: goreleaser/goreleaser-action@v4 | ||
if: matrix.make == 'goreleaser' | ||
with: | ||
args: check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
//go:generate go run github.com/abice/go-enum -f=$GOFILE --marshal --names | ||
package resolver | ||
|
||
import ( | ||
|