Skip to content

Commit

Permalink
ci(workflows): archive code coverage and production artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Nov 26, 2022
1 parent 0f80b75 commit 415aea1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
#
# References:
#
# - https://docs.github.com/actions/automating-builds-and-tests/building-and-testing-nodejs
# - https://docs.github.com/actions/using-jobs/using-a-matrix-for-your-jobs
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#push
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
# - https://github.com/actions/checkout
# - https://github.com/actions/upload-artifact
# - https://github.com/hmarr/debug-action

---
Expand Down Expand Up @@ -87,3 +89,23 @@ jobs:
run: yarn pack -o %s-%v.tgz
env:
NODE_ENV: production
- id: package-version
name: Get package version
run: echo "result=$(jq .version package.json -r)" >> $GITHUB_OUTPUT
- id: test-archive
name: Archive code coverage results
uses: actions/upload-artifact@v3.1.1
with:
name: |
${{ format('@{0}-{1}-{2}-coverage', github.repository_owner, github.event.repository.name, steps.package-version.outputs.result) }}
path: |
coverage
!coverage/tmp/
!coverage/lcov.info
- id: package-archive
name: Archive production artifacts
uses: actions/upload-artifact@v3.1.1
with:
name: |
${{ format('@{0}-{1}-{2}', github.repository_owner, github.event.repository.name, steps.package-version.outputs.result) }}
path: '*.tgz'

0 comments on commit 415aea1

Please sign in to comment.