From c9dfbab71f00caaff47f8882e6c708b456b6920c Mon Sep 17 00:00:00 2001 From: hxtree Date: Sat, 4 Nov 2023 06:23:53 +0000 Subject: [PATCH] feat: mimic actions Signed-off-by: hxtree --- .github/workflows/call-coverage.yml | 11 ++++++----- .github/workflows/call-deploy.yml | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/call-coverage.yml b/.github/workflows/call-coverage.yml index f944e78c..659a4669 100644 --- a/.github/workflows/call-coverage.yml +++ b/.github/workflows/call-coverage.yml @@ -1,4 +1,4 @@ -name: CodeCoverage +name: Test Coverage on: workflow_call: @@ -10,7 +10,7 @@ on: jobs: rush-coverage: - name: rush coverage + name: rush test:cov timeout-minutes: 25 runs-on: ubuntu-latest steps: @@ -18,6 +18,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + ref: ${{ secrets.IMPACTED_BY_SHA }} - name: Setup Node uses: actions/setup-node@v3 @@ -38,13 +39,14 @@ jobs: - name: Install PNPM run: npm install --global pnpm@8.6.6 - - 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/mongo-memory-server-action@v1.0.2 + - name: rush test:cov + uses: neofinancial/mongo-memory-server-action@v1.0.2 with: db-connection-env-var: MONGO_DATABASE_URI run-command: node common/scripts/install-run-rush.js test:cov @@ -62,4 +64,3 @@ jobs: with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} coverage-reports: coverage/lcov.info - diff --git a/.github/workflows/call-deploy.yml b/.github/workflows/call-deploy.yml index db421708..81c40849 100644 --- a/.github/workflows/call-deploy.yml +++ b/.github/workflows/call-deploy.yml @@ -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: