Skip to content

Commit ba6f9cd

Browse files
ci(*): Update workflows
1 parent 7264c09 commit ba6f9cd

File tree

9 files changed

+21
-47
lines changed

9 files changed

+21
-47
lines changed

.githooks/commit-msg

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

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
ddev php -r "echo phpversion('memcached');"
6767
6868
- name: Clone PHP lib Crowdsec files
69-
uses: actions/checkout@v4
69+
uses: actions/checkout@v5
7070
with:
7171
path: my-code/crowdsec-bouncer-lib
7272

.github/workflows/doc-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919

2020
- name: Clone sources
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222
with:
2323
path: extension
2424

.github/workflows/keepalive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717

1818
- name: Clone project files
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020

2121
# keepalive-workflow keeps GitHub from turning off tests after 60 days
2222
- uses: gautamkrishnar/keepalive-workflow@v2

.github/workflows/php-sdk-development-tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ jobs:
7575

7676
name: Test suite
7777
runs-on: ubuntu-latest
78-
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}
7978
env:
8079
EXTENSION_PATH: "my-code/crowdsec-bouncer-lib"
8180
REMEDIATION_ENGINE_PATH: "my-code/php-remediation-engine"
@@ -171,41 +170,41 @@ jobs:
171170
172171
- name: Clone bouncer lib files
173172
if: inputs.is_call != true
174-
uses: actions/checkout@v4
173+
uses: actions/checkout@v5
175174
with:
176175
path: ${{env.EXTENSION_PATH}}
177176

178177
- name: Clone bouncer lib files
179178
if: inputs.is_call == true
180-
uses: actions/checkout@v4
179+
uses: actions/checkout@v5
181180
with:
182181
repository: ${{ env.BOUNCER_LIB_REPO }}
183182
path: ${{env.EXTENSION_PATH}}
184183
ref: "main"
185184

186185
- name: Clone PHP common files
187-
uses: actions/checkout@v4
186+
uses: actions/checkout@v5
188187
with:
189188
repository: ${{ steps.set-common-data.outputs.repo}}
190189
ref: ${{ steps.set-common-data.outputs.branch }}
191190
path: ${{env.PHP_COMMON_PATH}}
192191

193192
- name: Clone LAPI client
194-
uses: actions/checkout@v4
193+
uses: actions/checkout@v5
195194
with:
196195
repository: ${{ steps.set-lapi-client-data.outputs.repo }}
197196
ref: ${{ steps.set-lapi-client-data.outputs.branch }}
198197
path: ${{env.LAPI_CLIENT_PATH}}
199198

200199
- name: Clone CAPI client
201-
uses: actions/checkout@v4
200+
uses: actions/checkout@v5
202201
with:
203202
repository: ${{ steps.set-capi-client-data.outputs.repo }}
204203
ref: ${{ steps.set-capi-client-data.outputs.branch }}
205204
path: ${{env.CAPI_CLIENT_PATH}}
206205

207206
- name: Clone PHP remediation engine
208-
uses: actions/checkout@v4
207+
uses: actions/checkout@v5
209208
with:
210209
repository: ${{ steps.set-remediation-engine-data.outputs.repo }}
211210
ref: ${{ steps.set-remediation-engine-data.outputs.branch }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
echo "VERSION_NUMBER=$(echo ${{ github.event.inputs.tag_name }} | sed 's/v//g' )" >> $GITHUB_ENV
2929
3030
- name: Clone sources
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v5
3232

3333
- name: Check version ${{ env.VERSION_NUMBER }} consistency in files
3434
# Check src/Constants.php and CHANGELOG.md

.github/workflows/sdk-chain-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
paths-ignore:
66
- "**.md"
7+
pull_request:
8+
branches:
9+
- main
10+
paths-ignore:
11+
- "**.md"
712

813
permissions:
914
contents: read
@@ -15,11 +20,10 @@ env:
1520
jobs:
1621
test-standalone-bouncer:
1722
name: Run Standalone Bouncer tests
18-
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}
1923
uses: crowdsecurity/cs-standalone-php-bouncer/.github/workflows/php-sdk-development-tests.yml@main
2024
with:
2125
php_common_json: '["main"]'
2226
lapi_client_json: '["main"]'
2327
capi_client_json: '["main"]'
2428
remediation_engine_json: '["main"]'
25-
bouncer_lib_json: '["${{ github.ref_name }}"]'
29+
bouncer_lib_json: '["${{ github.head_ref || github.ref_name }}"]'

.github/workflows/test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
ddev php -r "echo phpversion('memcached');"
7272
7373
- name: Clone PHP lib Crowdsec files
74-
uses: actions/checkout@v4
74+
uses: actions/checkout@v5
7575
with:
7676
path: my-code/crowdsec-bouncer-lib
7777

docs/DEVELOPER.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ ddev config --project-type=php --php-version=8.2 --project-name=crowdsec-bouncer
9595
- Add some DDEV add-ons:
9696

9797
```bash
98-
ddev get ddev/ddev-redis
99-
ddev get ddev/ddev-memcached
100-
ddev get julienloizelet/ddev-tools
101-
ddev get julienloizelet/ddev-crowdsec-php
98+
ddev add-on get ddev/ddev-redis
99+
ddev add-on get ddev/ddev-memcached
100+
ddev add-on get julienloizelet/ddev-tools
101+
ddev add-on get julienloizelet/ddev-crowdsec-php
102102
```
103103

104104
- Clone this repo sources in a `my-code/crowdsec-bouncer-lib` folder:
@@ -502,13 +502,6 @@ Example:
502502
feat(admin): Add css for admin actions
503503

504504

505-
You can use the `commit-msg` git hook that you will find in the `.githooks` folder:
506-
507-
```
508-
cp .githooks/commit-msg .git/hooks/commit-msg
509-
chmod +x .git/hooks/commit-msg
510-
```
511-
512505
### Allowed message `type` values
513506

514507
- chore (automatic tasks; no production code change)

0 commit comments

Comments
 (0)