Skip to content

Commit 45bb9c2

Browse files
[TASK] Use reusable workflows and actions
1 parent 4bd51c0 commit 45bb9c2

1 file changed

Lines changed: 14 additions & 23 deletions

File tree

.github/workflows/cgl.yaml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,38 @@ permissions:
1313
jobs:
1414
prepare:
1515
name: Prepare workflow
16-
uses: eliashaeussler/.github/.github/workflows/pull-request.yaml@fdc23f43e6ba48018b997f552dd39f9944c17c86 # main
16+
uses: eliashaeussler/gha/.github/workflows/preparation.yaml@main
1717

1818
cgl:
1919
runs-on: ubuntu-latest
2020
needs: prepare
2121
if: needs.prepare.outputs.continue == 'true'
2222
permissions:
2323
security-events: write
24+
2425
steps:
2526
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2627
with:
2728
persist-credentials: false
2829

29-
# Prepare environment
30+
# Composer
3031
- name: Setup PHP
31-
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2
32+
uses: eliashaeussler/gha/.github/actions/setup-php@main
3233
with:
3334
# We use the minimum supported PHP version
3435
php-version: 8.2 # renovate-ignore
35-
ini-file: development
36-
tools: composer:v2
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
- name: Setup Node
40-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
41-
with:
42-
node-version: 24
43-
cache: npm
44-
45-
# Install dependencies
46-
- name: Install Composer dependencies
47-
uses: ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27 #v4
48-
- name: Install Frontend dependencies
49-
run: npm ci
50-
51-
# Perform checks
36+
- name: Install Composer packages
37+
uses: eliashaeussler/gha/.github/actions/composer-install@main
5238
- name: Perform Composer checks
53-
run: composer ci
54-
shell: bash
39+
uses: eliashaeussler/gha/.github/actions/composer-checks@main
40+
41+
# npm
42+
- name: Setup Node
43+
uses: eliashaeussler/gha/.github/actions/setup-node@main
44+
- name: Install npm packages
45+
uses: eliashaeussler/gha/.github/actions/npm-install@main
5546
- name: Perform npm checks
56-
run: npm run ci
47+
uses: eliashaeussler/gha/.github/actions/npm-checks@main
5748

5849
# Zizmor
5950
- name: Run zizmor

0 commit comments

Comments
 (0)