Skip to content

Commit

Permalink
chore: update dependabot rules
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Dec 9, 2023
1 parent 4f2506d commit 9e20f80
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 38 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

0 comments on commit 9e20f80

Please sign in to comment.