mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Merge branch 'main' into develop
This commit is contained in:
2
.github/workflows/cleanup.yml
vendored
2
.github/workflows/cleanup.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
# This workflow prunes old workflow runs for an entire repository.
|
# This workflow prunes old workflow runs for an entire repository.
|
||||||
|
|
||||||
name: "Chore - prune old builds"
|
name: "Chore - Prune old builds"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
|
2
.github/workflows/closed-issues.yml
vendored
2
.github/workflows/closed-issues.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: "Issues - reply to closed issue"
|
name: "Issues - Reply to closed issue"
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
|
8
.github/workflows/depsreview.yml
vendored
8
.github/workflows/depsreview.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: 'Code - dependency review'
|
name: 'Code - Dependency review'
|
||||||
on: [ pull_request ]
|
on: [ pull_request ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -8,7 +8,9 @@ jobs:
|
|||||||
dependency-review:
|
dependency-review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout Repository'
|
- name: 'Checkout repository'
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: 'Dependency Review'
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: 'Dependency review'
|
||||||
uses: actions/dependency-review-action@v3
|
uses: actions/dependency-review-action@v3
|
||||||
|
2
.github/workflows/label-actions.yml
vendored
2
.github/workflows/label-actions.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: 'Issues - reply to specific labels'
|
name: 'Issues - Reply to specific labels'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
|
46
.github/workflows/sonarcloud.yml
vendored
46
.github/workflows/sonarcloud.yml
vendored
@@ -7,39 +7,15 @@ on:
|
|||||||
- main
|
- main
|
||||||
- develop
|
- develop
|
||||||
env:
|
env:
|
||||||
DB_CONNECTION: mysql
|
DB_CONNECTION: sqlite
|
||||||
DB_HOST: "127.0.0.1"
|
APP_KEY: UfpBqqeXx7zpNodsC6yjYQcRfDdm4Bxh
|
||||||
DB_DATABASE: firefly
|
|
||||||
DB_USER: firefly
|
|
||||||
DB_PASSWORD: secret_firefly_password
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
name: SonarCloud
|
name: SonarCloud
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
|
||||||
mariadb:
|
|
||||||
image: mariadb:latest
|
|
||||||
ports:
|
|
||||||
- 3306:3306
|
|
||||||
env:
|
|
||||||
MYSQL_ROOT_PASSWORD: yes
|
|
||||||
MYSQL_USER: ${{ env.DB_USER }}
|
|
||||||
MYSQL_PASSWORD: ${{ env.DB_PASSWORD }}
|
|
||||||
MYSQL_DATABASE: ${{ env.DB_DATABASE }}
|
|
||||||
options: >-
|
|
||||||
--health-cmd="healthcheck.sh --connect --innodb_initialized"
|
|
||||||
--health-interval=10s
|
|
||||||
--health-timeout=5s
|
|
||||||
--health-retries=3
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -55,6 +31,7 @@ jobs:
|
|||||||
iconv
|
iconv
|
||||||
intl
|
intl
|
||||||
json
|
json
|
||||||
|
sqlite3
|
||||||
mbstring
|
mbstring
|
||||||
openssl
|
openssl
|
||||||
pdo
|
pdo
|
||||||
@@ -68,19 +45,8 @@ jobs:
|
|||||||
- name: Install Composer dependencies
|
- name: Install Composer dependencies
|
||||||
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
|
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
|
||||||
|
|
||||||
- name: Verify Database connection
|
- name: "Create database file"
|
||||||
env:
|
run: touch storage/database/database.sqlite
|
||||||
PORT: ${{ job.services.mariadb.ports[3306] }}
|
|
||||||
run: |
|
|
||||||
while ! mysqladmin ping -h"${{env.DB_HOST}}" -P"${PORT}" --silent; do
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Copy environment file
|
|
||||||
run: sed 's@DB_HOST=.*@DB_HOST=${{env.DB_HOST}}@g' .env.example > .env
|
|
||||||
|
|
||||||
- name: Generate app key
|
|
||||||
run: php artisan key:generate
|
|
||||||
|
|
||||||
- name: "Create the database"
|
- name: "Create the database"
|
||||||
run: php artisan firefly-iii:create-database
|
run: php artisan firefly-iii:create-database
|
||||||
|
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: "Issues - close stale issues"
|
name: "Issues - Close stale issues"
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 1 * * *"
|
- cron: "30 1 * * *"
|
||||||
|
Reference in New Issue
Block a user