diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 866adaf499..6373796287 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -1,6 +1,6 @@ # This workflow prunes old workflow runs for an entire repository. -name: "Chore - prune old builds" +name: "Chore - Prune old builds" on: schedule: diff --git a/.github/workflows/closed-issues.yml b/.github/workflows/closed-issues.yml index 43c68d6e92..5dcbb2958b 100644 --- a/.github/workflows/closed-issues.yml +++ b/.github/workflows/closed-issues.yml @@ -1,4 +1,4 @@ -name: "Issues - reply to closed issue" +name: "Issues - Reply to closed issue" on: issues: types: diff --git a/.github/workflows/depsreview.yml b/.github/workflows/depsreview.yml index 29d9f8de8b..cc523f90d1 100644 --- a/.github/workflows/depsreview.yml +++ b/.github/workflows/depsreview.yml @@ -1,4 +1,4 @@ -name: 'Code - dependency review' +name: 'Code - Dependency review' on: [ pull_request ] permissions: @@ -8,7 +8,9 @@ jobs: dependency-review: runs-on: ubuntu-latest steps: - - name: 'Checkout Repository' + - name: 'Checkout repository' uses: actions/checkout@v3 - - name: 'Dependency Review' + with: + fetch-depth: 0 + - name: 'Dependency review' uses: actions/dependency-review-action@v3 diff --git a/.github/workflows/label-actions.yml b/.github/workflows/label-actions.yml index 115647bdef..1371343feb 100644 --- a/.github/workflows/label-actions.yml +++ b/.github/workflows/label-actions.yml @@ -1,4 +1,4 @@ -name: 'Issues - reply to specific labels' +name: 'Issues - Reply to specific labels' on: issues: diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 2b2842042c..cf3b682c4f 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -7,39 +7,15 @@ on: - main - develop env: - DB_CONNECTION: mysql - DB_HOST: "127.0.0.1" - DB_DATABASE: firefly - DB_USER: firefly - DB_PASSWORD: secret_firefly_password - + DB_CONNECTION: sqlite + APP_KEY: UfpBqqeXx7zpNodsC6yjYQcRfDdm4Bxh jobs: sonarcloud: name: SonarCloud 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: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -55,6 +31,7 @@ jobs: iconv intl json + sqlite3 mbstring openssl pdo @@ -68,19 +45,8 @@ jobs: - name: Install Composer dependencies run: composer install --prefer-dist --no-interaction --no-progress --no-scripts - - name: Verify Database connection - env: - 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 database file" + run: touch storage/database/database.sqlite - name: "Create the database" run: php artisan firefly-iii:create-database diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0b9bf683fb..9e09ac8afe 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,4 +1,4 @@ -name: "Issues - close stale issues" +name: "Issues - Close stale issues" on: schedule: - cron: "30 1 * * *"