Skip to content

Commit 80535aa

Browse files
authored
Merge pull request #454 from reload/tweaks-actions
Composer lock and tweak actions
2 parents bdf0eb8 + e40c95f commit 80535aa

File tree

8 files changed

+77
-15
lines changed

8 files changed

+77
-15
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: 2
23
updates:
34
- package-ecosystem: github-actions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
on: pull_request
3+
name: GitHub Actions
4+
5+
# Detect if this action is already running, and cancel it.
6+
# This most likely happened because a second push has been made to a branch.
7+
concurrency:
8+
group: ${{ github.repository_id }}-${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
15+
jobs:
16+
actionlint:
17+
name: Actionlint
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- uses: actions/checkout@v5
21+
- uses: reviewdog/action-actionlint@v1

.github/workflows/pull_request.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
on: pull_request
23
name: Check and lint
34
permissions:
@@ -6,7 +7,7 @@ permissions:
67
jobs:
78
php_version:
89
name: Lookup PHP version
9-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
1011
outputs:
1112
php_version: ${{ env.php_version }}
1213
steps:
@@ -16,7 +17,7 @@ jobs:
1617

1718
review_codestyle:
1819
name: Codestyle
19-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-24.04
2021
needs: php_version
2122
steps:
2223
- uses: actions/checkout@v5
@@ -34,7 +35,7 @@ jobs:
3435

3536
static_code_analysis:
3637
name: Static Code Analysis
37-
runs-on: ubuntu-latest
38+
runs-on: ubuntu-24.04
3839
needs: php_version
3940
steps:
4041
- uses: actions/checkout@v5
@@ -57,7 +58,7 @@ jobs:
5758

5859
unit_tests:
5960
name: PHPUnit tests
60-
runs-on: ubuntu-latest
61+
runs-on: ubuntu-24.04
6162
needs: php_version
6263
steps:
6364
- uses: actions/checkout@v5
@@ -75,14 +76,14 @@ jobs:
7576
7677
hadolint:
7778
name: Hadolint
78-
runs-on: ubuntu-latest
79+
runs-on: ubuntu-24.04
7980
steps:
8081
- uses: actions/checkout@v5
8182
- uses: hadolint/[email protected]
8283

8384
markdown_lint:
8485
name: Markdown lint
85-
runs-on: ubuntu-latest
86+
runs-on: ubuntu-24.04
8687
steps:
8788
- uses: actions/checkout@v5
8889
- name: Install problem matcher
@@ -94,7 +95,7 @@ jobs:
9495

9596
docker_build:
9697
name: Test Docker build
97-
runs-on: ubuntu-latest
98+
runs-on: ubuntu-24.04
9899
steps:
99100
- uses: actions/checkout@v5
100101
- name: Build docker image

.github/workflows/yaml.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
on: pull_request
3+
name: YAML
4+
5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
9+
# Detect if this action is already running, and cancel it.
10+
# This most likely happened because a second push has been made to a branch.
11+
concurrency:
12+
group: ${{ github.repository_id }}-${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
yaml-cs-fixer:
17+
name: Yamllint
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- uses: actions/checkout@v5
21+
- name: Run Yamllint
22+
uses: frenck/[email protected]
23+
with:
24+
strict: true

.yamllint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
3+
extends: default
4+
5+
ignore-from-file:
6+
- .gitignore
7+
8+
rules:
9+
indentation:
10+
spaces: 2
11+
line-length: disable
12+
truthy:
13+
check-keys: false

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: 'Sync Drupal security updates with JIRA'
23
description: 'Check a Drupal site corresponding to the current repository for security updates and creates JIRA tickets accordingly.'
34
author: 'reload'

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grumphp.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
---
12
grumphp:
2-
ascii:
3-
failed: ~
4-
succeeded: ~
5-
tasks:
6-
phpstan: []
7-
phpcs: []
8-
phpunit: []
3+
ascii:
4+
failed: ~
5+
succeeded: ~
6+
tasks:
7+
phpstan: []
8+
phpcs: []
9+
phpunit: []

0 commit comments

Comments
 (0)