-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 837 Bytes
/
ci.yml
File metadata and controls
38 lines (36 loc) · 837 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
36
37
38
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- '*'
env:
CI: true
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- uses: actions/cache@v3
id: npm-cache
with:
path: 'node_modules'
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm clean-install
- name: Build
run: npm run build
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
- name: Test
run: npm run test:e2e