-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1018 Bytes
/
PR.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: PR
on:
- pull_request
env:
NPM_TOKEN: ''
jobs:
continuous-integration:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Checkout Code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: pnpm Setup
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: 7.6.0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
id: deployInstall
- name: Build
run: pnpm run build
- name: Setup Environment
run: echo $TEST_ENV_FILE | base64 --decode > .env.test.local
env:
TEST_ENV_FILE: ${{ secrets.TEST_DOTENV }}
- name: Run Unit Tests
run: pnpm run test:unit:ci