Skip to content

Commit 95eee20

Browse files
committed
Create test-deploy.yml for test deployment on pull request
1 parent a367755 commit 95eee20

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/test-deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test Deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
name: Test Deployment
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16.x
20+
21+
- name: Cache dependencies
22+
uses: actions/cache@v2
23+
with:
24+
path: |
25+
**/node_modules
26+
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Test Build
32+
run: npm run build

0 commit comments

Comments
 (0)