Skip to content

Commit 5530e06

Browse files
authored
Merge pull request #192 from patinthehat/main
Minor updates and improvements
2 parents 4f37808 + a8fa946 commit 5530e06

File tree

5 files changed

+15
-172
lines changed

5 files changed

+15
-172
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
version: 2
22

33
updates:
4-
54
- package-ecosystem: "github-actions"
65
directory: "/"
76
schedule:
87
interval: "weekly"
8+
- package-ecosystem: "composer"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/dependabot-auto-merge.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,13 @@ jobs:
1313

1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v1.6.0
16+
uses: dependabot/fetch-metadata@v2.0.0
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919
compat-lookup: true
2020

21-
- name: Auto-merge Dependabot PRs for semver-minor updates
22-
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
23-
run: gh pr merge --auto --merge "$PR_URL"
24-
env:
25-
PR_URL: ${{github.event.pull_request.html_url}}
26-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27-
28-
- name: Auto-merge Dependabot PRs for semver-patch updates
29-
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
21+
- name: Auto-merge Dependabot PRs for semver-minor/patch updates
22+
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
3023
run: gh pr merge --auto --merge "$PR_URL"
3124
env:
3225
PR_URL: ${{github.event.pull_request.html_url}}

.github/workflows/run-tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ jobs:
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
20-
21-
- name: Setup Node
22-
uses: actions/setup-node@v4
20+
21+
- uses: oven-sh/setup-bun@v1
2322
with:
24-
node-version: '20'
23+
bun-version: latest
2524

2625
- name: Setup PHP
2726
uses: shivammathur/setup-php@v2
@@ -36,8 +35,9 @@ jobs:
3635
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
3736
- name: Install dependencies
3837
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
39-
38+
39+
- name: Install dependencies
40+
run: bun install
41+
4042
- name: Execute tests
41-
run: |
42-
npm install
43-
vendor/bin/phpunit
43+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)