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 7a4bcd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/axon-tools-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ 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"
- run: npm ci
- run: npm run test --workspace=@medable/mdctl-axon-tools
- uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions packages/mdctl-axon-tools/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ module.exports = {
stripSkippedTest: true,
customInfos: [{
title: 'Ref',
value: process.env.GITHUB_REF_NAME
value: process.env.GITHUB_HEAD_REF
}, {
title: 'Commit #',
value: process.env.GITHUB_SHA
value: process.env.CI_COMMIT_SHORT_SHA
}]
}]]

Expand Down

0 comments on commit 7a4bcd6

Please sign in to comment.