forked from ps73/feathers-prisma
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 989 Bytes
/
test.yml
File metadata and controls
37 lines (34 loc) · 989 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
name: Run tests
on:
push:
branches: [ '*' ]
pull_request:
branches: ['*']
jobs:
build:
name: 'Run tests'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 17]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: restore caches
uses: actions/cache@v2
with:
path: |
./node_modules
./.coverage
./.eslintcache
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
- name: Run tests
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install && npx prisma generate && npm run lint -- --cache && npm run test
- name: Publish code coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_REPORTER_ID }}