Skip to content

Commit 2372d59

Browse files
authored
Merge pull request #487 from jbampton/separate-workflows-rename
2 parents 5796476 + 05a08f2 commit 2372d59

3 files changed

Lines changed: 34 additions & 13 deletions

File tree

.github/workflows/check-gems.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on: [pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
check-gems:
10+
name: Check gem files
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v6
15+
with:
16+
persist-credentials: false
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: '3.2' # Not needed with a .ruby-version file
20+
bundler: 'default'
21+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
22+
- run: bundle exec .check.rb
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
name: Lint
1+
name: pre-commit
22

33
on: [pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
6-
check-gems:
7-
name: Check gem files
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v6
11-
- uses: ruby/setup-ruby@v1
12-
with:
13-
ruby-version: '3.2' # Not needed with a .ruby-version file
14-
bundler: 'default'
15-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
16-
- run: bundle exec .check.rb
179
pre-commit:
1810
name: Run pre-commit # https://pre-commit.com/
1911
runs-on: ubuntu-latest
2012
steps:
21-
- uses: actions/checkout@v6
13+
- name: Checkout Code
14+
uses: actions/checkout@v6
15+
with:
16+
persist-credentials: false
2217
- uses: actions/setup-python@v6 # https://www.python.org/
2318
with:
2419
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax

.github/workflows/super-linter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Super-Linter
33

44
on: [pull_request]
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
build:
811
name: Lint Code Base
@@ -13,6 +16,7 @@ jobs:
1316
with:
1417
# Full git history is needed to get a proper list of changed files within `super-linter`
1518
fetch-depth: 0
19+
persist-credentials: false
1620
- name: Lint Code Base
1721
uses: super-linter/super-linter/slim@v8.5.0
1822
env:

0 commit comments

Comments
 (0)