Skip to content

Commit

Permalink
feat: mimic actions
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree committed Nov 4, 2023
1 parent dc97dae commit c9dfbab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/call-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CodeCoverage
name: Test Coverage

on:
workflow_call:
Expand All @@ -10,14 +10,15 @@ on:

jobs:
rush-coverage:
name: rush coverage
name: rush test:cov
timeout-minutes: 25
runs-on: ubuntu-latest
steps:
- name: Check out code base
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ secrets.IMPACTED_BY_SHA }}

- name: Setup Node
uses: actions/setup-node@v3
Expand All @@ -38,13 +39,14 @@ jobs:
- name: Install PNPM
run: npm install --global [email protected]

- name: Rush install
- name: rush install
run: node common/scripts/install-run-rush.js install -p

- name: rush build
run: node common/scripts/install-run-rush.js build

- uses: neofinancial/[email protected]
- name: rush test:cov
uses: neofinancial/[email protected]
with:
db-connection-env-var: MONGO_DATABASE_URI
run-command: node common/scripts/install-run-rush.js test:cov
Expand All @@ -62,4 +64,3 @@ jobs:
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/lcov.info

5 changes: 3 additions & 2 deletions .github/workflows/call-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# prior to services being deployed to S3 dependencies are published to npm services to ensure dependencies are avaliable
# libray and platform dependencies MUST be published to npm
# prior to services being deployed to S3 dependencies to ensure dependencies are avaliable

name: Deploy
name: Deploy Artifacts

on:
workflow_call:
Expand Down

0 comments on commit c9dfbab

Please sign in to comment.