58 lines (45 loc) · 1.16 KB
/
coverage.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
53
54
55
56
57
58
---
name: Coverage
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Coverage
strategy:
fail-fast: false
matrix:
node-version: [16.x]
steps:
- name: Checkout Repository
uses: actions/checkout@v2.4.0
with:
fetch-depth: 1
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v2.4.1
with:
always-auth: false
node-version: ${{ matrix.node-version }}
- name: Start Databases
run: npm run db:start:no-oracle
- name: Run npm install
run: npm install
- name: Install pg-native
run: npm i pg-native
- name: Run Tests
run: npm run test:coverage
env:
CI: true
DB: "postgres pgnative mysql mysql2 mssql sqlite3 cockroachdb"
KNEX_TEST_TIMEOUT: 60000
- name: Stop Databases
run: npm run db:stop
- name: Generate LCOV
run: npm run coveralls
- name: Update Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
if: success()