Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Reorganize build job.
James Colea8bed2d316a0
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 855afbbd66..1eb3b9b18e 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -32,18 +32,6 @@ jobs:uses: actions/checkout@v6with:fetch-depth: 0- - name: Import GPG key- uses: crazy-max/ghaction-import-gpg@v7- with:- gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}- passphrase: ${{ secrets.PASSPHRASE }}- git_user_signingkey: true- git_commit_gpgsign: true- - name: Setup PHP- uses: shivammathur/setup-php@v2- with:- php-version: ${{ github.event.inputs.phpversion || '8.5' }}- extensions: mbstring, intl, zip, bcmath- name: Switch and pullrun: |# validate argument@@ -53,7 +41,6 @@ jobs:exit 1fi-## Always check out origin/develop, unless its a branch release.#@@ -77,6 +64,11 @@ jobs:git config user.email [email protected]git config advice.addIgnoredFile falsegit config push.autoSetupRemote true+ - name: Setup PHP+ uses: shivammathur/setup-php@v2+ with:+ php-version: ${{ github.event.inputs.phpversion || '8.5' }}+ extensions: mbstring, intl, zip, bcmath- name: Lint PHPrun: |php_lint_file()@@ -98,6 +90,40 @@ jobs:thenexit 1fi+ - name: Code cleanup+ id: code-cleanup+ uses: JC5/firefly-iii-dev@main+ with:+ action: 'ff3:code'+ output: ''+ env:+ FIREFLY_III_ROOT: /github/workspace+ GH_TOKEN: ''+ - name: Setup Mago+ uses: nhedger/setup-mago@v1+ with:+ version: "latest"+ working-directory: "."+ - name: Run CI+ run: |+ cp .env.example .env+ # install all packages etc.+ rm -rf vendor composer.lock+ composer update --no-scripts -q++ # format code.+ echo "Will now run Mago Format"+ mago format+ sudo chown -R runner:docker resources/lang+ echo "Will now run PHPCS"+ .ci/phpcs.sh++ # lint and check+ echo "Will now run Mago Lint"+ mago lint+ echo "Will now run PHPstan"+ .ci/phpstan.sh+ rm .env- name: Crowdin actionuses: crowdin/github-action@v2with:@@ -109,6 +135,30 @@ jobs:GITHUB_TOKEN: ${{ github.token }}CROWDIN_PROJECT_NR: ${{ secrets.CROWDIN_PROJECT_NR }}CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}+ - name: Generate JSON v1+ id: json-v1+ uses: JC5/firefly-iii-dev@main+ with:+ action: 'ff3:json-translations v1'+ output: ''+ env:+ FIREFLY_III_ROOT: /github/workspace+ GH_TOKEN: ''+ - name: Generate JSON v2+ id: json-v2+ uses: JC5/firefly-iii-dev@main+ with:+ action: 'ff3:json-translations v2'+ output: ''+ env:+ FIREFLY_III_ROOT: /github/workspace+ GH_TOKEN: ''+ - name: Build JS+ run: |+ npm install+ npm run prod --workspace=v1 --verbose+ npm run build --workspace=v2 --verbose+ npm update- name: Cleanup changelogid: cleanup-changeloguses: JC5/firefly-iii-dev@main@@ -137,61 +187,7 @@ jobs:FIREFLY_III_ROOT: /github/workspaceGH_TOKEN: ""FF_III_VERSION: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}- - name: Generate JSON v1- id: json-v1- uses: JC5/firefly-iii-dev@main- with:- action: 'ff3:json-translations v1'- output: ''- env:- FIREFLY_III_ROOT: /github/workspace- GH_TOKEN: ''- - name: Generate JSON v2- id: json-v2- uses: JC5/firefly-iii-dev@main- with:- action: 'ff3:json-translations v2'- output: ''- env:- FIREFLY_III_ROOT: /github/workspace- GH_TOKEN: ''- - name: Code cleanup- id: code-cleanup- uses: JC5/firefly-iii-dev@main- with:- action: 'ff3:code'- output: ''- env:- FIREFLY_III_ROOT: /github/workspace- GH_TOKEN: ''- - name: Build JS- run: |- npm install- npm run prod --workspace=v1 --verbose- npm run build --workspace=v2 --verbose- npm update- - name: Setup Mago- uses: nhedger/setup-mago@v1- - name: Run CI- run: |- cp .env.example .env- # install all packages etc.- rm -rf vendor composer.lock- composer update --no-scripts -q- # format code.- echo "Will now run Mago Format"- mago format- sudo chown -R runner:docker resources/lang- echo "Will now run PHPCS"- .ci/phpcs.sh-- # lint and check- echo "Will now run Mago Lint"- mago lint- echo "Will now run PHPstan"- .ci/phpstan.sh- rm .env- name: Calculate variablesrun: |@@ -326,6 +322,13 @@ jobs:env:GH_TOKEN: ${{ github.token }}version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}+ - name: Import GPG key+ uses: crazy-max/ghaction-import-gpg@v7+ with:+ gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}+ passphrase: ${{ secrets.PASSPHRASE }}+ git_user_signingkey: true+ git_commit_gpgsign: true- name: Create archivesrun: |echo "Create zip file $zipName"