Skip to content

Commit

Permalink
add ENV variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Ala Hawash committed Mar 12, 2024
1 parent 82caaee commit b49dcb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/axon-tools-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Set ENV variables
id: vars
run: |
echo "CI_COMMIT_SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> "$GITHUB_ENV"
echo "CI_BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV"
- run: npm ci
- run: npm run test --workspace=@medable/mdctl-axon-tools
- uses: actions/upload-artifact@v4
Expand Down
6 changes: 3 additions & 3 deletions packages/mdctl-axon-tools/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ module.exports = {
filename: 'report.html',
stripSkippedTest: true,
customInfos: [{
title: 'Ref',
value: process.env.GITHUB_REF_NAME
title: 'Branch',
value: process.env.CI_BRANCH
}, {
title: 'Commit #',
value: process.env.GITHUB_SHA
value: process.env.CI_COMMIT_SHORT_SHA
}]
}]]

Expand Down

0 comments on commit b49dcb8

Please sign in to comment.