Skip to content

Commit

Permalink
chore(test) set tag to GIT_BRANCH
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Nov 14, 2024
1 parent ad3e4a7 commit 3e2c454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/e2e/test/provider.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
const { server, importData, animalRepository } = require('../provider.js');
const path = require('path');
const LOG_LEVEL = process.env.LOG_LEVEL || 'TRACE';
const LOG_LEVEL = process.env.LOG_LEVEL || 'INFO';

const app = server.listen(8081, () => {
importData();
Expand Down Expand Up @@ -66,7 +66,7 @@ describe('Pact Verification', () => {
// consumerVersionTags: ['master', 'test', 'prod', 'feat/v3.0.0'],

// Tag provider version with given tags
providerVersionTags: process.env.GIT_BRANCH || ['master'], // in real code, this would be dynamically set by process.env.GIT_BRANCH
providerVersionTags: [process.env.GIT_BRANCH] || ['master'], // in real code, this would be dynamically set by process.env.GIT_BRANCH
providerVersionBranch: process.env.GIT_BRANCH || 'master',

// Find _all_ pacts that match the current provider branch
Expand Down

0 comments on commit 3e2c454

Please sign in to comment.