-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
- Loading branch information
1 parent
747a1d6
commit 6cd0a7c
Showing
15 changed files
with
257 additions
and
267 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
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,49 @@ | ||
# Copyright 2025 NVIDIA CORPORATION | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
name: "basic checks" | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
version: | ||
description: "The short SHA to use as a version string" | ||
value: ${{ jobs.variables.outputs.version }} | ||
golang_version: | ||
description: "The golang version for this project" | ||
value: ${{ jobs.variables.outputs.golang_version }} | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
branches: | ||
- main | ||
- release-* | ||
|
||
jobs: | ||
variables: | ||
uses: ./.github/workflows/variables.yaml | ||
|
||
golang: | ||
needs: | ||
- variables | ||
uses: ./.github/workflows/golang.yaml | ||
with: | ||
golang_version: ${{ needs.variables.outputs.golang_version }} | ||
|
||
code-scanning: | ||
needs: | ||
- variables | ||
uses: ./.github/workflows/code_scanning.yaml | ||
with: | ||
golang_version: ${{ needs.variables.outputs.golang_version }} |
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 @@ | ||
# Copyright 2025 NVIDIA CORPORATION | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
name: CI Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- "pull-request/[0-9]+" | ||
- main | ||
- release-* | ||
|
||
jobs: | ||
basic: | ||
uses: ./.github/workflows/basic-checks.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,53 @@ | ||
# Copyright 2025 NVIDIA CORPORATION | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
name: "CodeQL" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
golang_version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze Go code with CodeQL | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 360 | ||
permissions: | ||
security-events: write | ||
packages: read | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ inputs.golang_version }} | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: go | ||
build-mode: manual | ||
|
||
- shell: bash | ||
run: | | ||
make build | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:go" |
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 |
---|---|---|
|
@@ -15,29 +15,23 @@ | |
name: Golang | ||
|
||
on: | ||
push: | ||
branches: | ||
- "pull-request/[0-9]+" | ||
- main | ||
- release-* | ||
workflow_call: | ||
inputs: | ||
golang_version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
check: | ||
runs-on: linux-amd64-cpu4 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Golang version | ||
id: vars | ||
run: | | ||
GOLANG_VERSION=$( grep "GOLANG_VERSION ?=" versions.mk ) | ||
echo "GOLANG_VERSION=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_ENV | ||
- uses: actions/checkout@v4 | ||
name: Checkout code | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
go-version: ${{ inputs.golang_versions }} | ||
|
||
- name: Lint | ||
uses: golangci/golangci-lint-action@v6 | ||
|
@@ -47,28 +41,5 @@ jobs: | |
skip-cache: true | ||
|
||
- name: Check golang modules | ||
run: make check-vendor | ||
|
||
- name: Check workflow status | ||
run: | | ||
if [ "${{ job.status }}" = "success" ]; then | ||
STATUS_MESSAGE=":green-check-mark: On repository ${{ github.repository }} the Workflow ${{ github.workflow }} has completed successfully." | ||
else | ||
STATUS_MESSAGE=":red_target: On repository ${{ github.repository }} the Workflow ${{ github.workflow }} has failed." | ||
fi | ||
echo "STATUS_MESSAGE=$STATUS_MESSAGE" >> $GITHUB_ENV | ||
- name: Send Slack alert notification | ||
id: slack | ||
if: github.event_name == 'push' | ||
uses: slackapi/[email protected] | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
SUMMARY_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | ||
with: | ||
channel-id: ${{ secrets.SLACK_CHANNEL_ID }} | ||
#slack-message: "GitHub build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | ||
slack-message: | | ||
${{ env.STATUS_MESSAGE }} | ||
Details: ${{ env.SUMMARY_URL }} | ||
make check-modules |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.