Skip to content

Commit 36e6406

Browse files
committed
chore: update lint and test workflows to include environment variables and streamline dependency installation
1 parent 52542a3 commit 36e6406

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
22-
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
2325
- name: Install bun
2426
uses: oven-sh/setup-bun@v2
2527

2628
- name: Install dependencies
2729
run: bun install
2830

29-
- name: Install dependencies # (assuming your project has dependencies)
30-
run: bun install # You can use npm/yarn/pnpm instead if you prefer
31+
- name: Run linter
32+
run: bun run lint
3133

3234
- name: Check for changes
3335
id: verify-changed-files
@@ -45,4 +47,4 @@ jobs:
4547
git config --local user.name "GitHub Action"
4648
git add .
4749
git commit -m "🔧 Auto-fix: ESLint formatting and fixes"
48-
git push
50+
git push

.github/workflows/tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@ on:
1313
jobs:
1414
test:
1515
runs-on: ubuntu-latest
16+
env:
17+
THUMBNAIL_URL: ${{ vars.THUMBNAIL_URL }}
1618

1719
steps:
1820
- name: Checkout
1921
uses: actions/checkout@v4
20-
22+
2123
- name: Install bun
2224
uses: oven-sh/setup-bun@v2
23-
24-
- name: Install dependencies # (assuming your project has dependencies)
25-
run: bun install # You can use npm/yarn/pnpm instead if you prefer
25+
26+
- name: Install dependencies
27+
run: bun install
2628

2729
- name: Run tests
28-
run: bun run test
30+
run: bun run test

0 commit comments

Comments
 (0)