Skip to content

Commit 1d7a39b

Browse files
committed
chore: add GitHub Actions workflow for PR testing
1 parent 592d7c4 commit 1d7a39b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PR Test
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
with:
15+
ref: ${{ github.head_ref }}
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
18+
- uses: pnpm/action-setup@v2
19+
with:
20+
version: 8
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: '18'
26+
cache: 'pnpm'
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Create .env file
32+
run: echo "${{ secrets.FRONT_END_ENV }}" > apps/client/.env
33+
34+
- name: Run tests
35+
run: pnpm run test

0 commit comments

Comments
 (0)