Skip to content

Commit

Permalink
Merge pull request #72 from dell/update-actions
Browse files Browse the repository at this point in the history
Update actions
  • Loading branch information
mjsdell authored Nov 13, 2024
2 parents 99da4dd + 46dd704 commit 3d63f3b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: Workflow
on:
name: Common Workflows
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
branches: [main]
branches: ["**"]

jobs:
code-check:
name: Check Go formatting, linting, vetting
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Run the formatter, linter, and vetter
uses: dell/common-github-actions/go-code-formatter-linter-vetter@main
- name: Run the formatter and vetter
uses: dell/common-github-actions/go-code-formatter-vetter@main
with:
directories: --vet-in-dir podmon ./...
sanitize:
Expand Down
2 changes: 1 addition & 1 deletion .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 Down
2 changes: 1 addition & 1 deletion .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: linters

on:
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ linters:
# Check for correctness of programs.
- govet
# Drop-in replacement of golint.
- revive
- revive

0 comments on commit 3d63f3b

Please sign in to comment.