Skip to content

Commit b49dcb8

Browse files
author
Ala Hawash
committed
add ENV variables
1 parent 82caaee commit b49dcb8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/axon-tools-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
with:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'npm'
29+
- name: Set ENV variables
30+
id: vars
31+
run: |
32+
echo "CI_COMMIT_SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> "$GITHUB_ENV"
33+
echo "CI_BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV"
2934
- run: npm ci
3035
- run: npm run test --workspace=@medable/mdctl-axon-tools
3136
- uses: actions/upload-artifact@v4

packages/mdctl-axon-tools/jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ module.exports = {
2323
filename: 'report.html',
2424
stripSkippedTest: true,
2525
customInfos: [{
26-
title: 'Ref',
27-
value: process.env.GITHUB_REF_NAME
26+
title: 'Branch',
27+
value: process.env.CI_BRANCH
2828
}, {
2929
title: 'Commit #',
30-
value: process.env.GITHUB_SHA
30+
value: process.env.CI_COMMIT_SHORT_SHA
3131
}]
3232
}]]
3333

0 commit comments

Comments
 (0)