-
Notifications
You must be signed in to change notification settings - Fork 8
30 lines (30 loc) · 1.05 KB
/
test.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
name: Node.js Test
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container: node:12
services:
vault:
image: hashicorp/vault
env:
VAULT_DEV_ROOT_TOKEN_ID: "test"
steps:
- uses: actions/[email protected]
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: "12.x"
registry-url: "https://npm.pkg.github.com"
# Defaults to the user or organization that owns the workflow file
scope: "@mittwald"
- run: 'curl -H ''X-Vault-Token: test'' -X POST -d ''{"type":"transit"}'' http://vault:8200/v1/sys/mounts/transit'
- run: 'curl -H ''X-Vault-Token: test'' -X POST -d ''{"type":"totp"}'' http://vault:8200/v1/sys/mounts/totp'
- run: 'curl -H ''X-Vault-Token: test'' -X POST -d ''{"type":"kv","version":1}'' http://vault:8200/v1/sys/mounts/kv'
- run: yarn
- run: yarn test:ci
env:
VAULT_ADDR: "http://vault:8200"
VAULT_TOKEN: "test"
VAULT_DEV_ROOT_TOKEN_ID: "test"