-
Notifications
You must be signed in to change notification settings - Fork 3
101 lines (86 loc) · 2.62 KB
/
updated.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Updated
on:
workflow_dispatch:
schedule:
- cron: '00 11 * * 1' # 11h00 UTC (08h00 BRT) on Mondays
push:
branches: ["main"]
paths:
- 'composer.lock'
- '.github/workflows/updated.yml'
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Zip
run: zip -r repository.zip .
- name: Repository
uses: actions/upload-artifact@v2
with:
name: repository
path: repository.zip
test:
needs: checkout
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version:
- "8.0"
- "8.1"
- "8.2"
# include:
# - php_version: "8.2.0RC3"
# experimental: true
# composer_platform_php: "8.0.24" # Use Latest PHP 8.0
steps:
- name: Checkout
uses: actions/download-artifact@v2
with:
name: repository
- name: Unzip
run: unzip repository.zip && rm -f repository.zip
- name: Prepare
run: |
echo UID=`id -u` >> $GITHUB_ENV
echo GID=`id -g` >> $GITHUB_ENV
- name: Build
run: docker-compose build
env:
PHP_VERSION: ${{ matrix.php_version }}
continue-on-error: ${{ matrix.experimental == true }}
- name: PHP Experimental
if: matrix.experimental == true
run: |
docker-compose run romans composer config platform.php ${{ matrix.composer_platform_php }}
docker-compose run romans composer update --lock --no-install
git diff
continue-on-error: ${{ matrix.experimental == true }}
- name: Install
run: docker-compose run romans composer install
continue-on-error: ${{ matrix.experimental == true }}
- name: Check Dependencies
run: docker-compose run romans composer outdated
continue-on-error: ${{ matrix.experimental == true }}
- name: Check Dependencies Direct
run: docker-compose run romans composer outdated --direct --strict --minor-only
continue-on-error: ${{ matrix.experimental == true }}
- name: Update Dependencies and Test
run: |
docker-compose run romans composer update
docker-compose run romans composer test
if: always()
continue-on-error: ${{ matrix.experimental == true }}
- name: Clean
run: docker-compose down
if: always()
clean:
needs: test
runs-on: ubuntu-latest
steps:
- name: Clean
uses: geekyeggo/delete-artifact@v1
with:
name: repository