Skip to content

Commit 9d5de20

Browse files
authored
[CI] Adjusted secrets (#100)
1 parent 6bda5ab commit 9d5de20

File tree

2 files changed

+32
-39
lines changed

2 files changed

+32
-39
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
php:
1717
- '8.3'
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020

2121
- name: Setup PHP Action
2222
uses: shivammathur/setup-php@v2
@@ -26,47 +26,13 @@ jobs:
2626
extensions: 'pdo_sqlite, gd'
2727
tools: cs2pr
2828

29-
- uses: "ramsey/composer-install@v1"
29+
- uses: ramsey/composer-install@v3
3030
with:
31-
dependency-versions: "highest"
31+
dependency-versions: highest
3232

3333
- name: Run code style check
3434
run: composer run-script check-cs -- --format=checkstyle | cs2pr
3535

36-
rector:
37-
name: Run rector
38-
runs-on: "ubuntu-24.04"
39-
strategy:
40-
matrix:
41-
php:
42-
- '8.3'
43-
steps:
44-
- uses: actions/checkout@v4
45-
46-
- name: Setup PHP Action
47-
uses: shivammathur/setup-php@v2
48-
with:
49-
php-version: ${{ matrix.php }}
50-
coverage: none
51-
extensions: 'pdo_sqlite, gd'
52-
tools: cs2pr
53-
54-
- name: Add composer keys for private packagist
55-
run: |
56-
composer config http-basic.updates.ibexa.co $SATIS_NETWORK_KEY $SATIS_NETWORK_TOKEN
57-
composer config github-oauth.github.com $TRAVIS_GITHUB_TOKEN
58-
env:
59-
SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
60-
SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
61-
TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}
62-
63-
- uses: ramsey/composer-install@v3
64-
with:
65-
dependency-versions: highest
66-
67-
- name: Run rector
68-
run: vendor/bin/rector process --dry-run --ansi
69-
7036
tests:
7137
name: Tests
7238
runs-on: "ubuntu-24.04"
@@ -79,7 +45,7 @@ jobs:
7945
- '8.3'
8046

8147
steps:
82-
- uses: actions/checkout@v2
48+
- uses: actions/checkout@v5
8349

8450
- name: Setup PHP Action
8551
uses: shivammathur/setup-php@v2
@@ -91,7 +57,7 @@ jobs:
9157

9258
- uses: ramsey/composer-install@v3
9359
with:
94-
dependency-versions: "highest"
60+
dependency-versions: highest
9561

9662
- name: Setup problem matchers for PHPUnit
9763
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

.github/workflows/rector.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Rector PHP
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '[0-9]+.[0-9]+'
8+
pull_request: ~
9+
10+
jobs:
11+
rector:
12+
name: Run rector
13+
runs-on: "ubuntu-22.04"
14+
strategy:
15+
matrix:
16+
php:
17+
- '8.3'
18+
steps:
19+
- uses: actions/checkout@v5
20+
21+
- uses: ibexa/gh-workflows/actions/composer-install@main
22+
with:
23+
gh-client-id: ${{ secrets.AUTOMATION_CLIENT_ID }}
24+
gh-client-secret: ${{ secrets.AUTOMATION_CLIENT_SECRET }}
25+
26+
- name: Run rector
27+
run: vendor/bin/rector process --dry-run --ansi

0 commit comments

Comments
 (0)