Fix serviceaccount token default location #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |