Skip to content

Commit 6f727f5

Browse files
committed
chore: code cleanup, improved github workflows
1 parent a791344 commit 6f727f5

File tree

6 files changed

+66
-112
lines changed

6 files changed

+66
-112
lines changed

.github/workflows/deploy.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Deploy Docs to GH Pages
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
concurrency:
19+
group: pages
20+
cancel-in-progress: false
21+
22+
jobs:
23+
# Build job
24+
build:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: ./docs
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v5
32+
with:
33+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
34+
- name: Setup Node
35+
uses: actions/setup-node@v6
36+
with:
37+
node-version: 22
38+
cache: npm
39+
cache-dependency-path: docs/package-lock.json
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v5
42+
- name: Install dependencies
43+
run: npm install
44+
- name: Build with VitePress
45+
run: npm run docs:build
46+
- name: Upload artifact
47+
uses: actions/upload-pages-artifact@v4
48+
with:
49+
path: docs/.vitepress/dist
50+
51+
# Deployment job
52+
deploy:
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
needs: build
57+
runs-on: ubuntu-latest
58+
name: Deploy
59+
steps:
60+
- name: Deploy to GitHub Pages
61+
id: deployment
62+
uses: actions/deploy-pages@v4

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: true
2222
matrix:
2323
os: [ubuntu-latest, windows-latest]
24-
php: [8.4, 8.3]
24+
php: [8.4]
2525
laravel: [12.*, 11.*]
2626
stability: [prefer-lowest, prefer-stable]
2727
include:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@
8585
"Farbcode\\LaravelEvm\\LaravelEvmServiceProvider"
8686
],
8787
"aliases": {
88-
"LaravelEvm": "Farbcode\\LaravelEvm\\Facades\\LaravelEvm",
8988
"EvmContract": "Farbcode\\LaravelEvm\\Facades\\EvmContract",
9089
"EvmRpc": "Farbcode\\LaravelEvm\\Facades\\EvmRpc",
9190
"EvmSigner": "Farbcode\\LaravelEvm\\Facades\\EvmSigner",
9291
"EvmFees": "Farbcode\\LaravelEvm\\Facades\\EvmFees",
93-
"EvmNonce": "Farbcode\\LaravelEvm\\Facades\\EvmNonce"
92+
"EvmNonce": "Farbcode\\LaravelEvm\\Facades\\EvmNonce",
93+
"EvmLogs": "Farbcode\\LaravelEvm\\Facades\\EvmLogs"
9494
}
9595
}
9696
},
9797
"minimum-stability": "dev",
9898
"prefer-stable": true
99-
}
99+
}

workbench/app/Models/User.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

workbench/database/factories/UserFactory.php

Lines changed: 0 additions & 54 deletions
This file was deleted.

workbench/database/seeders/DatabaseSeeder.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Database\Seeder;
66
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
7-
use Workbench\Workbench\Workbench\Database\Factories\UserFactory;
87

98
class DatabaseSeeder extends Seeder
109
{
@@ -13,11 +12,6 @@ class DatabaseSeeder extends Seeder
1312
*/
1413
public function run(): void
1514
{
16-
// UserFactory::new()->times(10)->create();
1715

18-
UserFactory::new()->create([
19-
'name' => 'Test User',
20-
'email' => 'test@example.com',
21-
]);
2216
}
2317
}

0 commit comments

Comments
 (0)