-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: build and push container image to GHCR.
Signed-off-by: mugioka <[email protected]>
- Loading branch information
Showing
5 changed files
with
19 additions
and
20 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 |
---|---|---|
@@ -1,26 +1,28 @@ | ||
name: Build | ||
name: CI | ||
on: | ||
# NOTE: To comment SonarCloud coverage to GitHub Pull Request, we need to run the CI on pull requests. | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
types: [opened, reopened] | ||
|
||
- develop | ||
- main | ||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
test: | ||
name: Test and upload coverage to SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v5.0.0 | ||
with: | ||
go-version: 1.17 | ||
go-version: 1.22.1 | ||
|
||
- name: Test | ||
- name: Test with coverage | ||
run: go test --tags=test -coverprofile=cover.out $(go list ./... | grep -v mxtransporter/cmd) | ||
|
||
- name: SonarCloud Scan | ||
|
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,4 @@ | ||
FROM golang:latest | ||
FROM golang:1.22.1-bookworm | ||
|
||
WORKDIR /go/src | ||
|
||
|
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