This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from gotwarlost/add-checks
simplify build, add docker build
- Loading branch information
Showing
5 changed files
with
80 additions
and
44 deletions.
There are no files selected for viewing
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,23 @@ | ||
name: check license headers | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
check-gen: | ||
name: check license headers | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- id: go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21 | ||
cache: false | ||
- name: checks | ||
run: | | ||
./scripts/check/check-license-header.sh |
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,24 @@ | ||
name: docker build | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
docker-build: | ||
name: build docker image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- name: setup | ||
run: | | ||
LDFLAGS="$(make ci-print-ldflags)" | ||
echo "LDFLAGS=${LDFLAGS}">>$GITHUB_ENV | ||
- name: docker build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
build-args: | ||
ldflags=${{ env.LDFLAGS }} |
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,25 @@ | ||
name: go build | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
go-build: | ||
name: build and test Go code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- id: go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21 | ||
- name: Build, test and lint | ||
run: | | ||
make ci | ||
- name: check dirty files from go generate | ||
run: | | ||
make ci-check-dirty |
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