mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-08 15:46:56 +00:00
chore: add auto
This commit is contained in:
parent
fbe0bd395b
commit
54b24ddb30
3 changed files with 909 additions and 23 deletions
|
|
@ -1,26 +1,7 @@
|
||||||
name: Test
|
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit:
|
test:
|
||||||
|
|
||||||
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:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
@ -40,11 +21,16 @@ jobs:
|
||||||
node-version: 10.x
|
node-version: 10.x
|
||||||
- name: npm install
|
- name: npm install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
- name: npm run test
|
||||||
|
run: npm run test
|
||||||
|
env:
|
||||||
|
CI: true
|
||||||
- name: npm run test:integration
|
- name: npm run test:integration
|
||||||
run: npm run test:integration
|
run: npm run test:integration
|
||||||
env:
|
env:
|
||||||
VAULT_HOST: localhost
|
VAULT_HOST: localhost
|
||||||
VAULT_PORT: ${{ job.services.vault.ports[8200] }}
|
VAULT_PORT: ${{ job.services.vault.ports[8200] }}
|
||||||
|
CI: true
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -81,7 +67,20 @@ jobs:
|
||||||
test secret | NAMED_SECRET ;
|
test secret | NAMED_SECRET ;
|
||||||
nested/test otherSecret ;
|
nested/test otherSecret ;
|
||||||
- name: verify
|
- 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
885
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -6,7 +6,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:integration": "jest -c integration/jest.config.js",
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
@ -32,6 +33,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^24.0.18",
|
"@types/jest": "^24.0.18",
|
||||||
|
"auto": "^7.6.0",
|
||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
"jest-when": "^2.7.0"
|
"jest-when": "^2.7.0"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue