Skip to content

Commit

Permalink
Added common actions
Browse files Browse the repository at this point in the history
Signed-off-by: Harish P <harish_p4@dell.com>
  • Loading branch information
harishp8889 committed Nov 8, 2024
1 parent b244a3a commit c28033d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 50 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/actions.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/common-workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Common Workflows
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
branches: ["**"]

jobs:

# golang static analysis checks
go-static-analysis:
uses: dell/common-github-actions/.github/workflows/go-static-analysis.yaml@main
name: Golang Validation

# checks unit tests, package coverage, and gosec
common:
name: Run gosec, unit tests, and check package coverage
uses: dell/common-github-actions/.github/workflows/go-common.yml@main

Check failure on line 18 in .github/workflows/common-workflows.yaml

View workflow job for this annotation

GitHub Actions / Golang Validation / Yaml Lint

18:74 [new-line-at-end-of-file] no new line character at the end of file
4 changes: 2 additions & 2 deletions .github/workflows/go-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Reusable workflow to perform go version update on Golang based projects
name: Go Version Update

on:
on: # yamllint disable-line rule:truthy
workflow_dispatch:
repository_dispatch:
types: [go-update-workflow]
Expand All @@ -19,4 +19,4 @@ jobs:
go-version-update:
uses: dell/common-github-actions/.github/workflows/go-version-workflow.yaml@main
name: Go Version Update
secrets: inherit
secrets: inherit

Check failure on line 22 in .github/workflows/go-version.yaml

View workflow job for this annotation

GitHub Actions / Golang Validation / Yaml Lint

22:21 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit c28033d

Please sign in to comment.