-
Notifications
You must be signed in to change notification settings - Fork 0
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 #26 from CQEN-QDCE/feature/build_deploy_tools
Feature/build deploy tools
- Loading branch information
Showing
19 changed files
with
226 additions
and
578 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,27 @@ | ||
name: Build and Release CLI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-release: | ||
runs-on: ubuntu-latest | ||
name: Build and Release CLI | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
- name: Setup Go | ||
uses: actions/setup-go@main | ||
with: | ||
go-version-file: './go.mod' | ||
- name: Build CLI | ||
run: go build -o ./ceai ./cmd/cli | ||
- name: Zip CLI | ||
run: zip -r ceai-cli-linux-${{ github.ref_name }}.zip ./ceai | ||
- name: Upload to Release | ||
uses: Shopify/upload-to-release@master | ||
with: | ||
name: ceai-cli-linux-${{ github.ref_name }}.zip | ||
path: ./ceai-cli-linux-${{ github.ref_name }}.zip | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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,9 @@ | ||
name: Contributions tests | ||
|
||
on: | ||
pull_request: | ||
branches: ["release/*", "main"] | ||
|
||
jobs: | ||
go-validations: | ||
uses: ./.github/workflows/go-validations.yaml |
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,21 @@ | ||
name: Go Validations | ||
|
||
on: [ workflow_call ] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
name: Validations Go | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
- name: Setup Go | ||
uses: actions/setup-go@main | ||
with: | ||
go-version-file: './go.mod' | ||
- name: StaticCheck | ||
run: | | ||
go install "honnef.co/go/tools/cmd/staticcheck@latest" | ||
$(go env GOPATH)/bin/staticcheck ./... | ||
- name: GoVulnCheck | ||
uses: golang/govulncheck-action@v1 |
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
Oops, something went wrong.