Skip to content

Commit

Permalink
chore: update dependabot rules (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Dec 9, 2023
1 parent 4f2506d commit ce9623f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 40 deletions.
23 changes: 3 additions & 20 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,20 @@ version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: "/"
directory: '/'
schedule:
interval: weekly
time: "11:00"
labels:
- actions
- dependencies
- auto-squash

# Maintain dependencies for npm/yarn
- package-ecosystem: npm
directory: "/"
directory: '/'
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
versioning-strategy: lockfile-only
labels:
- javascript
- dependencies
- auto-squash

# Maintain dependencies for Composer
- package-ecosystem: composer
directory: "/"
directory: '/'
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
versioning-strategy: lockfile-only
labels:
- php
- dependencies
- auto-squash
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -154,13 +154,13 @@ jobs:
run: |
version=$(git tag --points-at HEAD)
test -z "$version" && version="main"
echo "::set-output name=value::$version"
echo "value=$version" >> $GITHUB_OUTPUT
- name: Set coverage list
id: coverage
run: |
SONAR_COVERAGE=$(ls -m --format=comma results/${{ env.coverage-with }}/coverage/coverage*.xml | sed -e ':a;N;$!ba;s/\n//g; s/ //g;')
echo "::set-output name=list::$SONAR_COVERAGE"
echo "list=$SONAR_COVERAGE" >> $GITHUB_OUTPUT
- name: SonarCloud Scan
if: env.SONAR_TOKEN != ''
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer files
uses: actions/cache@v3
with:
Expand All @@ -69,18 +69,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ env.node-version }}
- name: Get yarn cache directory path
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache yarn files
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
${{ runner.os }}-yarn-
cache: yarn
- name: Install yarn dependencies
run: yarn install
- name: Lint files
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer files
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function handle(): void
$this->artisan('✓ Clear config cache', 'config:clear');
$this->artisan('✓ Resetting route cache', 'route:cache');
$this->artisan('✓ Resetting view cache', 'view:clear');
// @codeCoverageIgnoreEnd
// @codeCoverageIgnoreEnd
} else {
$this->artisan('✓ Clear config cache', 'config:clear');
$this->artisan('✓ Clear route cache', 'route:clear');
Expand Down
1 change: 1 addition & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ protected function commands()
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*
* @codeCoverageIgnore
*/
protected function schedule(Schedule $schedule)
Expand Down
2 changes: 1 addition & 1 deletion config/sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
// @see: https://docs.sentry.io/platforms/php/configuration/options/#send-default-pii
'send_default_pii' => env('SENTRY_DEFAULT_PII', false),

'traces_sample_rate' => (float) (env('SENTRY_TRACES_SAMPLE_RATE', 0.0)),
'traces_sample_rate' => (float) env('SENTRY_TRACES_SAMPLE_RATE', 0.0),

'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'),

Expand Down

0 comments on commit ce9623f

Please sign in to comment.