-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 917 Bytes
/
node.js.yml
File metadata and controls
35 lines (32 loc) · 917 Bytes
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
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.2.0
with:
mongodb-version: 4.0
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- run: yarn install --frozen-lockfile
- name: Run tests
run: yarn run test
env:
MONGO_URI: "${{ secrets.MONGO_URI }}"
JWT_SECRET: "${{ secrets.JWT_SECRET }}"
JWT_EXPIRES_IN: "${{ secrets.JWT_EXPIRES_IN }}"
FIREBASE_PRIVATE_KEY: "${{ secrets.FIREBASE_PRIVATE_KEY }}"
SESSION_SECRET: "${{ secrets.SESSION_SECRET }}"
KEY_ID: "${{ secrets.KEY_ID }}"
KEY_SECRET: "${{ secrets.KEY_SECRET }}"