Skip to content

Commit d542dae

Browse files
authored
Actions upgrade (#1441)
1 parent f8ac8d0 commit d542dae

17 files changed

+492
-467
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
.gitattributes export-ignore
77
.gitignore export-ignore
88
CHANGELOG.md export-ignore
9-
monorepo-builder.yml export-ignore
109
pint.json export-ignore
1110
README.md export-ignore

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
php:
7-
default: '8.4'
7+
default: '8.5'
88
description: The PHP version to use
99
type: string
1010
message:

.github/workflows/monorepo-split.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,37 @@ jobs:
99
split:
1010
name: Split Providers
1111
runs-on: ubuntu-latest
12+
1213
steps:
1314
- name: Checkout code
14-
uses: actions/checkout@v1
15-
16-
# Required due to GH detached head bug https://github.com/actions/checkout/issues/6
17-
- name: Prepare repository
18-
run: git checkout "${GITHUB_REF:11}"
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
persist-credentials: false
1919

2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2
2222
with:
23-
php-version: '8.4'
23+
php-version: '8.5'
2424
coverage: none
2525

2626
- name: Install dependencies
27-
run: composer install -vvv
27+
run: composer install --no-interaction --prefer-dist
28+
29+
- name: Create repos for new providers
30+
run: php tools/create-repos.php "${{ github.sha }}" "${{ github.repository }}"
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_PUSH_TOKEN }}
33+
34+
- name: Install splitsh-lite
35+
run: |
36+
mkdir -p /tmp/splitsh
37+
wget -qO /tmp/splitsh/splitsh-lite.tar.gz https://github.com/splitsh/lite/releases/download/v1.0.1/lite_linux_amd64.tar.gz
38+
tar -zxf /tmp/splitsh/splitsh-lite.tar.gz -C /tmp/splitsh
39+
sudo mv /tmp/splitsh/splitsh-lite /usr/local/bin/splitsh-lite
2840
29-
- name: Split
30-
run: ./vendor/bin/monorepo-builder split --max-processes 8
41+
- name: Split packages
42+
run: ./tools/split.sh
3143
env:
3244
GITHUB_TOKEN: ${{ secrets.GITHUB_PUSH_TOKEN }}
45+
MAX_PARALLEL: '8'

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release providers
2+
3+
on:
4+
workflow_run:
5+
workflows: ['Split providers into their individual repos']
6+
types:
7+
- completed
8+
9+
jobs:
10+
release:
11+
name: Release changed providers
12+
runs-on: ubuntu-latest
13+
if: >
14+
github.event.workflow_run.conclusion == 'success' &&
15+
github.event.workflow_run.event == 'push'
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: '8.5'
27+
coverage: none
28+
29+
- name: Install dependencies
30+
run: composer install --no-interaction --prefer-dist
31+
32+
- name: Release providers
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_PUSH_TOKEN }}
35+
run: php tools/release.php "${{ github.event.workflow_run.head_sha }}" "${{ github.repository }}"

.github/workflows/subtree-pr-close.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.4'
21+
php-version: '8.5'
2222
coverage: none
2323

2424
- name: Install dependencies

.github/workflows/test.yml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ on:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11-
strategy:
12-
max-parallel: 15
13-
fail-fast: true
14-
matrix:
15-
php-versions: ['8.3', '8.4', '8.5' ]
11+
name: Lint
1612

17-
name: PHP ${{ matrix.php-versions }}
1813
steps:
1914
- name: Checkout code
2015
uses: actions/checkout@v4
@@ -23,28 +18,14 @@ jobs:
2318
uses: shivammathur/setup-php@v2
2419
with:
2520
coverage: none
26-
php-version: ${{ matrix.php-versions }}
21+
php-version: '8.5'
2722
extensions: json, mbstring
28-
env:
29-
fail-fast: ${{ matrix.fail-fast }}
30-
31-
- name: Get composer cache directory
32-
id: composer-cache
33-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
34-
35-
- name: Cache composer dependencies
36-
uses: actions/cache@v4
37-
with:
38-
path: ${{ steps.composer-cache.outputs.dir }}
39-
key: "php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}"
40-
restore-keys: "php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}"
4123

4224
- name: Install dependencies
43-
run: composer install --no-interaction --prefer-dist
25+
run: composer install --no-interaction --prefer-dist
4426

4527
- name: Lint the code
4628
run: vendor/bin/parallel-lint --exclude vendor .
4729

4830
- name: Lint composer.json
49-
if: matrix.validate == true
5031
run: composer validate --strict

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
"docs": "https://socialiteproviders.com"
99
},
1010
"require": {
11-
"php": "^8.0",
11+
"php": "^8.5",
1212
"league/oauth1-client": "^1.9",
1313
"socialiteproviders/manager": "^4.4"
1414
},
1515
"require-dev": {
1616
"guzzlehttp/guzzle": "^7.9",
17-
"illuminate/http": "^8.0",
17+
"illuminate/http": "^12.0",
1818
"laravel/pint": "^1.18",
1919
"php-parallel-lint/php-console-highlighter": "^1.0",
20-
"php-parallel-lint/php-parallel-lint": "^1.4",
21-
"symplify/monorepo-builder": "^8.0"
20+
"composer/semver": "^3.0",
21+
"php-parallel-lint/php-parallel-lint": "^1.4"
2222
},
2323
"autoload": {
2424
"psr-4": {

0 commit comments

Comments
 (0)