mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-07-26 00:13:16 +03:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da9a93f3f5 | |||
| 6784ab3896 | |||
| 609488b35d | |||
| 42871c7c42 | |||
| 9c822dc25c | |||
| bb5aae504b | |||
| 6adb719ae2 | |||
| 54b24ddb30 | |||
| fbe0bd395b |
@@ -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,18 @@ jobs:
|
|||||||
node-version: 10.x
|
node-version: 10.x
|
||||||
- name: npm install
|
- name: npm install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
- name: npm build
|
||||||
|
run: npm run build
|
||||||
|
- 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
|
||||||
@@ -66,6 +54,8 @@ jobs:
|
|||||||
node-version: 10.x
|
node-version: 10.x
|
||||||
- name: npm install
|
- name: npm install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
- name: npm build
|
||||||
|
run: npm run build
|
||||||
- name: setup vault
|
- name: setup vault
|
||||||
run: node ./e2e/setup.js
|
run: node ./e2e/setup.js
|
||||||
env:
|
env:
|
||||||
@@ -83,5 +73,20 @@ jobs:
|
|||||||
- 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: npx semantic-release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
+5
-2
@@ -1,4 +1,4 @@
|
|||||||
name: 'Vault'
|
name: 'Vault Secrets'
|
||||||
description: 'A Github Action that allows you to consume the v2 K/V backend of HashiCorp Vault as secure environment variables'
|
description: 'A Github Action that allows you to consume the v2 K/V backend of HashiCorp Vault as secure environment variables'
|
||||||
inputs:
|
inputs:
|
||||||
url:
|
url:
|
||||||
@@ -12,4 +12,7 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'index.js'
|
main: 'dist/index.js'
|
||||||
|
branding:
|
||||||
|
icon: 'unlock'
|
||||||
|
color: 'gray-dark'
|
||||||
Vendored
+4744
File diff suppressed because it is too large
Load Diff
Generated
+5596
File diff suppressed because it is too large
Load Diff
+48
-36
@@ -1,38 +1,50 @@
|
|||||||
{
|
{
|
||||||
"name": "vault-action",
|
"name": "vault-action",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "A Github Action that allows you to consume vault secrets as secure environment variables.",
|
"description": "A Github Action that allows you to consume vault secrets as secure environment variables.",
|
||||||
"main": "index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest",
|
"build": "ncc build index.js -o dist",
|
||||||
"test:integration": "jest -c integration/jest.config.js",
|
"test": "jest",
|
||||||
"test:e2e": "jest -c e2e/jest.config.js"
|
"test:integration": "jest -c integration/jest.config.js",
|
||||||
},
|
"test:e2e": "jest -c e2e/jest.config.js"
|
||||||
"repository": {
|
},
|
||||||
"type": "git",
|
"release": {
|
||||||
"url": "git+https://github.com/RichiCoder1/vault-action.git"
|
"branch": "master",
|
||||||
},
|
"plugins": [
|
||||||
"keywords": [
|
"@semantic-release/commit-analyzer",
|
||||||
"hashicorp",
|
"@semantic-release/release-notes-generator",
|
||||||
"vault",
|
"@semantic-release/github"
|
||||||
"github",
|
],
|
||||||
"actions",
|
"ci": false
|
||||||
"github-actions",
|
},
|
||||||
"javascript"
|
"repository": {
|
||||||
],
|
"type": "git",
|
||||||
"author": "Richard Simpson <richardsimpson@outlook.com>",
|
"url": "git+https://github.com/RichiCoder1/vault-action.git"
|
||||||
"license": "MIT",
|
},
|
||||||
"bugs": {
|
"keywords": [
|
||||||
"url": "https://github.com/RichiCoder1/vault-action/issues"
|
"hashicorp",
|
||||||
},
|
"vault",
|
||||||
"homepage": "https://github.com/RichiCoder1/vault-action#readme",
|
"github",
|
||||||
"dependencies": {
|
"actions",
|
||||||
"@actions/core": "^1.1.1",
|
"github-actions",
|
||||||
"got": "^9.6.0"
|
"javascript"
|
||||||
},
|
],
|
||||||
"devDependencies": {
|
"author": "Richard Simpson <richardsimpson@outlook.com>",
|
||||||
"@types/jest": "^24.0.18",
|
"license": "MIT",
|
||||||
"jest": "^24.9.0",
|
"bugs": {
|
||||||
"jest-when": "^2.7.0"
|
"url": "https://github.com/RichiCoder1/vault-action/issues"
|
||||||
}
|
},
|
||||||
|
"homepage": "https://github.com/RichiCoder1/vault-action#readme",
|
||||||
|
"dependencies": {
|
||||||
|
"@actions/core": "^1.1.1",
|
||||||
|
"got": "^9.6.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/jest": "^24.0.18",
|
||||||
|
"@zeit/ncc": "^0.20.5",
|
||||||
|
"jest": "^24.9.0",
|
||||||
|
"jest-when": "^2.7.0",
|
||||||
|
"semantic-release": "^15.13.24"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user