This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
Build on branch master triggered by ivy-rew #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build | |
run-name: Build on branch ${{github.ref_name}} triggered by ${{github.actor}} | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 22 * * *' | |
env: | |
DIST_FILE: ivy-website-market.tar | |
jobs: | |
build: | |
runs-on: ["ubuntu-latest"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.2" | |
extensions: | | |
gd | |
zip | |
- name: Composer install | |
shell: sh | |
run: | | |
composer install --no-dev --no-progress | |
tar -cf ${{ env.DIST_FILE }} --exclude=src/web/_market --exclude=src/web/market-cache src vendor | |
- name: Archive build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.DIST_FILE }} | |
path: | | |
${{ env.DIST_FILE }} | |
- name: Run test | |
shell: sh | |
run: | | |
composer install --no-progress | |
./vendor/bin/phpunit --log-junit phpunit-junit.xml | |
- name: Public test report | |
uses: EnricoMi/publish-unit-test-result-action/linux@v2 | |
if: success() || failure() | |
with: | |
files: "**/phpunit-junit.xml" | |
- name: Editor checker | |
uses: editorconfig-checker/action-editorconfig-checker@main | |
- run: editorconfig-checker | |
- name: Clean up | |
run: | | |
rm -rf * |