-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.28 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
pull_request:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 14, 16, 18, 20 ]
services:
hashicorp_vault:
image: hashicorp/vault
ports:
- 8200:8200
options: >-
--hostname hashicorp_vault
--restart on-failure:10
--health-cmd "vault status --address http://127.0.0.1:8200"
--health-interval 15s
--health-timeout 10s
--health-retries 10
--health-start-period 60s
env:
VAULT_DEV_ROOT_TOKEN_ID: 2852e82e-c84c-4a82-8339-61b9ec503816
SKIP_SETCAP: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npx eslint --ignore-path .gitignore --ext .json,.ts .
- name: Build
run: npm run build
- name: Test
run: npx vitest run --coverage
env:
VAULT_ADDRESS: http://localhost:8200
VAULT_TOKEN: 2852e82e-c84c-4a82-8339-61b9ec503816
- name: Send coverage report to Codecov
uses: codecov/codecov-action@v3