5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-07 07:06:56 +00:00

chore: add auto

This commit is contained in:
Richard Simpson 2019-09-20 18:16:55 -05:00
parent fbe0bd395b
commit 54b24ddb30
No known key found for this signature in database
GPG key ID: 0CECAF50D013D1E2
3 changed files with 909 additions and 23 deletions

View file

@ -1,26 +1,7 @@
name: Test
on: [push]
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install and test
run: |
npm ci
npm test
env:
CI: true
integration:
test:
runs-on: ubuntu-latest
services:
@ -40,11 +21,16 @@ jobs:
node-version: 10.x
- name: npm install
run: npm ci
- name: npm run test
run: npm run test
env:
CI: true
- name: npm run test:integration
run: npm run test:integration
env:
VAULT_HOST: localhost
VAULT_PORT: ${{ job.services.vault.ports[8200] }}
CI: true
e2e:
runs-on: ubuntu-latest
@ -81,7 +67,20 @@ jobs:
test secret | NAMED_SECRET ;
nested/test otherSecret ;
- name: verify
run: npm run test:e2e
run: npm run test:e2e=
publish:
runs-on: ubuntu-latest
needs: [test, e2e]
steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install
run: npm ci
- name: release
if: success() && endsWith(github.ref, 'master')
run: npm run release

885
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,8 @@
"scripts": {
"test": "jest",
"test:integration": "jest -c integration/jest.config.js",
"test:e2e": "jest -c e2e/jest.config.js"
"test:e2e": "jest -c e2e/jest.config.js",
"release": "auto shipit"
},
"repository": {
"type": "git",
@ -32,6 +33,7 @@
},
"devDependencies": {
"@types/jest": "^24.0.18",
"auto": "^7.6.0",
"jest": "^24.9.0",
"jest-when": "^2.7.0"
}