-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.11 KB
/
ci.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: ci
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.4.1
with:
node-version: 14.x
- name: Install npm dependencies
run: yarn install
- name: Run eslint
run: yarn lint:js
- name: Run remark-lint
run: yarn lint:md
- name: Run unit tests
run: yarn cover
env:
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
REFRESH_TOKEN_SECRET: ${{ secrets.REFRESH_TOKEN_SECRET }}
HOMITALDB_CONNECTIONSTRING: ${{ secrets.HOMITALDB_CONNECTIONSTRING }}
NOREPLY_EMAIL_HOST: ${{ secrets.NOREPLY_EMAIL_HOST }}
NOREPLY_EMAIL_PORT: ${{ secrets.NOREPLY_EMAIL_PORT }}
NOREPLY_EMAIL_ADDR: ${{ secrets.NOREPLY_EMAIL_ADDR }}
NOREPLY_EMAIL_PASS: ${{ secrets.NOREPLY_EMAIL_PASS }}
- name: Upload to Codecov
run: |
yarn codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}