-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (41 loc) · 1.15 KB
/
develop.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Node.js CI
on:
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install PNPM
run: npm install -g pnpm
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Check for leaked secrets
uses: zricethezav/[email protected]
- name: Prisma Generate
run: pnpm run prisma:generate
- name: Linter
run: pnpm run lint
- name: Compile
run: pnpm run build
- name: Run Tests
id: run_tests
run: |
if pnpm test; then
echo "Tests passed successfully" > test_results.md
echo "::set-output name=result::$(cat test_results.md)"
else
echo "Tests failed" > test_results.md
echo "::set-output name=result::$(cat test_results.md)"
exit 1
fi
env:
CI: true
FIREBASE_PRIVATE_KEY: ${{ secrets.FIREBASE_PRIVATE_KEY }}