Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f66aa27dd7 | ||
|
|
daa25abccf | ||
|
|
699875cedd | ||
|
|
2cc7d517b1 | ||
|
|
7beb13af45 | ||
|
|
1c85b88c9f | ||
|
|
fd5b64a99a | ||
|
|
9e83fa020d | ||
|
|
0ae2f632ff | ||
|
|
9b1afca0f5 | ||
|
|
3c3b20c470 | ||
|
|
3da96bbb90 | ||
|
|
a2266ca47d |
@@ -5,6 +5,7 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- renovate/**
|
||||
- 1692/setup-renovate-debug
|
||||
|
||||
pull_request:
|
||||
types:
|
||||
@@ -16,9 +17,9 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version:
|
||||
- 10
|
||||
# - 10
|
||||
- 12
|
||||
- 14
|
||||
# - 14
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -31,7 +32,7 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- run: npm run test:ci
|
||||
- run: npx ava test/integration.test.js
|
||||
|
||||
# separate job to set as required in branch protection,
|
||||
# as the build names above change each time Node versions change
|
||||
|
||||
@@ -21,6 +21,13 @@ See https://github.com/semantic-release/semantic-release/blob/master/docs/suppor
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log("DEBUG START ==========")
|
||||
console.log('process.env')
|
||||
console.log(process.env)
|
||||
console.log('envCi({ env: process.env })')
|
||||
console.log(require('env-ci')({ env: process.env }))
|
||||
console.log("DEBUG END ==========")
|
||||
|
||||
execa('git', ['--version'])
|
||||
.then(({stdout}) => {
|
||||
var gitVersion = findVersions(stdout)[0];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const path = require('path');
|
||||
const test = require('ava');
|
||||
const { serial: test } = require('ava');
|
||||
const proxyquire = require('proxyquire');
|
||||
const {escapeRegExp} = require('lodash');
|
||||
const {writeJson, readJson} = require('fs-extra');
|
||||
@@ -29,7 +29,11 @@ const npmRegistry = require('./helpers/npm-registry');
|
||||
const requireNoCache = proxyquire.noPreserveCache();
|
||||
|
||||
// Environment variables used with semantic-release cli (similar to what a user would setup)
|
||||
const {GITHUB_ACTION, GITHUB_TOKEN, ...processEnvWithoutGitHubActionsVariables} = process.env;
|
||||
const {
|
||||
GITHUB_ACTION,
|
||||
GITHUB_TOKEN,
|
||||
...processEnvWithoutGitHubActionsVariables
|
||||
} = process.env
|
||||
const env = {
|
||||
...processEnvWithoutGitHubActionsVariables,
|
||||
...npmRegistry.authEnv,
|
||||
@@ -652,12 +656,7 @@ test('Hide sensitive environment variable values from the logs', async (t) => {
|
||||
});
|
||||
|
||||
t.log('$ semantic-release');
|
||||
const {stdout, stderr} = await execa(cli, [], {
|
||||
env: {...env, MY_TOKEN: 'secret token'},
|
||||
cwd,
|
||||
reject: false,
|
||||
extendEnv: false,
|
||||
});
|
||||
const {stdout, stderr} = await execa(cli, [], {env: {...env, MY_TOKEN: 'secret token'}, cwd, reject: false, extendEnv: false});
|
||||
|
||||
t.regex(stdout, new RegExp(`Console: Exposing token ${escapeRegExp(SECRET_REPLACEMENT)}`));
|
||||
t.regex(stdout, new RegExp(`Log: Exposing token ${escapeRegExp(SECRET_REPLACEMENT)}`));
|
||||
|
||||
Reference in New Issue
Block a user