Skip to content

Commit 77e340b

Browse files
committed
(maint) Use reusable static code analysis workflow
This commit updates the static code analysis GitHub Actions workflow from using a copy in this repository to a resuable copy in the Phoenix team centralized GitHub Actions repository. In addition, this removes the commits Rake task as it is no longer used in the reusable version of this workflow.
1 parent bd68744 commit 77e340b

File tree

2 files changed

+2
-65
lines changed

2 files changed

+2
-65
lines changed

.github/workflows/static_code_analysis.yaml

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,8 @@ on:
66
branches: [ main ]
77
pull_request:
88
branches: [ main ]
9+
workflow_dispatch:
910

1011
jobs:
1112
static_code_analysis:
12-
name: Run checks
13-
14-
env:
15-
ruby_version: '2.7'
16-
17-
runs-on: 'ubuntu-20.04'
18-
steps:
19-
- name: Checkout current PR code
20-
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0
23-
24-
- name: Install ruby version ${{ env.ruby_version }}
25-
uses: ruby/setup-ruby@v1
26-
with:
27-
ruby-version: ${{ env.ruby_version }}
28-
29-
- name: Prepare testing environment with bundler
30-
run: |
31-
git config --global core.longpaths true
32-
bundle config set --local without 'release'
33-
bundle update --jobs 4 --retry 3
34-
35-
- name: Run commits check
36-
run: bundle exec rake commits
37-
38-
- name: Run validate check
39-
run: bundle exec rake validate
40-
41-
- name: Run lint check
42-
run: bundle exec rake lint
43-
44-
- name: Run metadata_lint check
45-
run: bundle exec rake metadata_lint
46-
47-
- name: Run syntax check
48-
run: bundle exec rake syntax syntax:hiera syntax:manifests syntax:templates
49-
50-
- name: Run rubocop check
51-
run: bundle exec rake rubocop
13+
uses: "puppetlabs/phoenix-github-actions/.github/workflows/static_code_analysis.yaml@main"

rakelib/commits.rake

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)