Skip to content

Commit 8b90774

Browse files
committed
(PA-5395) Use reusable static code analysis
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 7aad551 commit 8b90774

File tree

2 files changed

+2
-63
lines changed

2 files changed

+2
-63
lines changed

.github/workflows/static_code_analysis.yaml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +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.6
16-
extra_checks: check:symlinks check:git_ignore check:dot_underscore check:test_file
17-
18-
runs-on: 'ubuntu-20.04'
19-
steps:
20-
- name: Checkout current PR code
21-
uses: actions/checkout@v4
22-
with:
23-
fetch-depth: 0
24-
25-
- name: Install ruby version ${{ env.ruby_version }}
26-
uses: ruby/setup-ruby@v1
27-
with:
28-
ruby-version: ${{ env.ruby_version }}
29-
30-
- name: Prepare testing environment with bundler
31-
run: |
32-
git config --global core.longpaths true
33-
bundle config set --local without 'release'
34-
bundle update --jobs 4 --retry 3
35-
36-
- name: Run commits check
37-
run: bundle exec rake commits
38-
39-
- name: Run rubocop check
40-
run: bundle exec rake ${{ env.extra_checks }} rubocop
41-
42-
- name: Run syntax check
43-
run: bundle exec rake ${{ env.extra_checks }} syntax syntax:hiera syntax:manifests syntax:templates
44-
45-
- name: Run lint check
46-
run: bundle exec rake ${{ env.extra_checks }} lint
47-
48-
- name: Run metadata_lint check
49-
run: bundle exec rake ${{ env.extra_checks }} metadata_lint
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)