File tree Expand file tree Collapse file tree 4 files changed +1241
-334
lines changed
Expand file tree Collapse file tree 4 files changed +1241
-334
lines changed Original file line number Diff line number Diff line change 1- /tests / export-ignore
2- /resources / export-ignore
1+ /. * export-ignore
2+ /tests / export-ignore
3+ /resources / export-ignore
34/package-lock.json export-ignore
45/package.json export-ignore
56/webpack.mix.js export-ignore
Original file line number Diff line number Diff line change 1+ name : Build assets
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ - master
9+ tags-ignore :
10+ - ' **'
11+
12+ jobs :
13+
14+ build-assets :
15+ name : Build assets
16+ runs-on : ubuntu-latest
17+ steps :
18+ -
19+ name : Checkout
20+ uses : actions/checkout@v4
21+ -
22+ name : Install NodeJS
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : 22
26+ cache : npm
27+ -
28+ name : Install dependencies
29+ run : npm ci
30+ -
31+ name : Build
32+ run : npm run-script production
33+ -
34+ name : Check changes
35+ id : check-changes
36+ run : |
37+ if git diff --exit-code --quiet assets; then
38+ echo 'No changes detected.'
39+ else
40+ echo 'Changes detected!'
41+ run: echo "CHANGES=yes" >>"$GITHUB_OUTPUT"
42+ fi
43+ -
44+ name : Commit changes
45+ if : steps.check-changes.outputs.CHANGES == 'yes' && github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
46+ run : |
47+ git config user.name "GitHub Actions"
48+ git config user.email [email protected] 49+ git add assets
50+ git commit -m "Build assets"
51+ git push
Original file line number Diff line number Diff line change 1+ name : Checks
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ tags-ignore :
9+ - ' **'
10+
11+ jobs :
12+
13+ check-syntax :
14+ name : PHP ${{ matrix.php-version }} Syntax
15+ runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ php-version :
19+ - " 7.3"
20+ - " 8.4"
21+ steps :
22+ -
23+ name : Checkout
24+ uses : actions/checkout@v4
25+ -
26+ name : Install PHP
27+ uses : shivammathur/setup-php@v2
28+ with :
29+ php-version : ${{ matrix.php-version }}
30+ extensions : opcache
31+ coverage : none
32+ tools : none
33+ -
34+ name : Check syntax
35+ uses : mlocati/check-php-syntax@v1
36+ with :
37+ fail-on-warnings : true
38+
39+ check-install :
40+ name : Install on Concrete ${{ matrix.ccm-version }}
41+ runs-on : ubuntu-latest
42+ container : ghcr.io/concrete5-community/docker5:${{ matrix.ccm-version }}
43+ strategy :
44+ matrix :
45+ ccm-version :
46+ - " 9.0"
47+ - " 9.3"
48+ - latest
49+ steps :
50+ -
51+ name : Checkout
52+ uses : actions/checkout@v4
53+ -
54+ name : Prepare package
55+ run : ln -s "$GITHUB_WORKSPACE" /app/packages/migration_tool
56+ -
57+ name : Start services
58+ run : ccm-service start db
59+ -
60+ name : Core info
61+ run : sudo -u www-data /app/concrete/bin/concrete5 --ansi --no-interaction c5:info
62+ -
63+ name : Install package
64+ run : sudo -u www-data /app/concrete/bin/concrete5 --ansi --no-interaction c5:package:install migration_tool
You can’t perform that action at this time.
0 commit comments