Skip to content

Commit ef4d0b4

Browse files
committed
chore: standardize branch list formatting in CI workflows
- Updated lint.yml and test.yml to use a consistent format for specifying branches in push and pull_request events.
1 parent 361ad2a commit ef4d0b4

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Lint
22

33
on:
44
push:
5-
branches: [main, develop]
5+
branches:
6+
- main
7+
- develop
68
pull_request:
7-
branches: [main, develop]
9+
branches:
10+
- main
11+
- develop
812

913
jobs:
1014
lint:

.github/workflows/test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Test
22

33
on:
44
push:
5-
branches: [main, develop]
5+
branches:
6+
- main
7+
- develop
68
pull_request:
7-
branches: [main, develop]
9+
branches:
10+
- main
11+
- develop
812

913
jobs:
1014
test:
@@ -24,7 +28,10 @@ jobs:
2428
- name: Install dependencies
2529
run: bun install --frozen-lockfile
2630

31+
- name: Prepare environment variables
32+
run: |
33+
echo "NODE_ENV=test" >> $GITHUB_ENV
34+
echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> $GITHUB_ENV
35+
2736
- name: Run tests
2837
run: bun test
29-
env:
30-
NODE_ENV: test

0 commit comments

Comments
 (0)