Skip to content

Commit 7c02d8c

Browse files
committed
[TASK] Update CI
1 parent cc85356 commit 7c02d8c

File tree

3 files changed

+42
-11
lines changed

3 files changed

+42
-11
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,52 @@ jobs:
99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
php: ['7.4', '8.0', '8.1', '8.2']
12+
typo3: ['^12', '^13', '13.4.x-dev']
13+
php: ['8.2', '8.3']
14+
include:
15+
- typo3: '^12'
16+
php: '8.1'
1317
steps:
18+
1419
- id: checkout
1520
name: Checkout Code
16-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
22+
1723
- id: setup_php
1824
name: Set up PHP ${{ matrix.php }}
1925
uses: shivammathur/setup-php@v2
2026
with:
2127
php-version: ${{ matrix.php }}
2228
tools: composer:v2
29+
30+
- name: Composer Cache Vars
31+
id: composer-cache-vars
32+
run: |
33+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
34+
echo "timestamp=$(date +"%s")" >> $GITHUB_OUTPUT
35+
36+
- name: Cache Composer dependencies
37+
uses: actions/cache@v4
38+
with:
39+
path: ${{ steps.composer-cache-vars.outputs.dir }}
40+
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.typo3 }}-${{ steps.composer-cache-vars.outputs.timestamp }}
41+
restore-keys: |
42+
${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.typo3 }}-
43+
${{ runner.os }}-composer-${{ matrix.php }}-
44+
${{ runner.os }}-composer-
45+
2346
- id: install
2447
name: Install
2548
run: |
26-
composer install --no-progress
49+
composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress
50+
git checkout composer.json
51+
2752
- id: lint
2853
name: Lint
2954
if: ${{ always() && steps.install.conclusion == 'success' }}
3055
run: |
3156
composer test:php:lint
57+
3258
- id: cgl
3359
name: CGL
3460
if: ${{ always() && steps.install.conclusion == 'success' }}
@@ -39,22 +65,29 @@ jobs:
3965
name: Build Frontend
4066
runs-on: ubuntu-latest
4167
steps:
68+
4269
- id: checkout
4370
name: Checkout Code
44-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
72+
4573
- id: setup_node
4674
name: Setup node
47-
uses: actions/setup-node@v3
75+
uses: actions/setup-node@v4
4876
with:
49-
node-version: 16
50-
- name: Install
77+
node-version: 20
78+
79+
- id: install
80+
name: Install
5181
run: |
5282
cd Build
53-
npm ci
54-
- name: Build
83+
npm install
84+
85+
- id: build
86+
name: Build
5587
run: |
5688
cd Build
5789
npm run build
90+
5891
- name: Status
5992
run: |
6093
git status

Build/package-lock.json

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

Build/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"readme": "../README.md",
66
"homepage": "http://www.bk2k.info",
77
"author": "Benjamin Kott",
8-
"version": "3.0.0",
98
"license": "GPL-2.0-or-later",
109
"devDependencies": {
1110
"grunt": "^1.6.1",

0 commit comments

Comments
 (0)