Skip to content

Commit 0d07788

Browse files
committed
chore: update GitHub workflows to include environment variables and streamline linting and testing steps
1 parent bd1dd3e commit 0d07788

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 3 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

.github/workflows/tests.yml

Lines changed: 6 additions & 4 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
2830
run: bun run test

0 commit comments

Comments
 (0)