forked from ustaxcourt/ef-cms
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9998 - temp commenting out shared workflow
- Loading branch information
1 parent
609ef16
commit ee1acd1
Showing
1 changed file
with
53 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
name: Node.js CI - Shared | ||
# name: Node.js CI - Shared | ||
|
||
on: | ||
pull_request: | ||
# on: | ||
# pull_request: | ||
|
||
jobs: | ||
Shared: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ci_node_total: [4] | ||
ci_node_index: [0, 1, 2, 3] | ||
env: | ||
CI_NODE_TOTAL: ${{ matrix.ci_node_total }} | ||
CI_NODE_INDEX: ${{ matrix.ci_node_index }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.15.0' | ||
- name: Collect Workflow Telemetry | ||
uses: runforesight/workflow-telemetry-action@v1 | ||
with: | ||
comment_on_pr: false | ||
- name: Install Node Dependencies | ||
run: npm ci | ||
- name: Shared | ||
run: | | ||
export TESTFILES=$(npx ts-node split-tests-glob.ts -shared) | ||
NODE_INDEX=${{ matrix.ci_node_index }} npm run test:shared:ci | ||
- name: Rename coverage to shard coverage | ||
run: | | ||
mkdir -p coverage | ||
cp shared/coverage/${{ matrix.ci_node_index }}/lcov.info coverage/lcov-${{ matrix.ci_node_index }}.info | ||
cp shared/coverage/${{ matrix.ci_node_index }}/coverage-final.json coverage/coverage-${{ matrix.ci_node_index }}.json | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage-artifacts | ||
path: coverage | ||
check-coverage: | ||
runs-on: ubuntu-latest | ||
needs: [Shared] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage-artifacts | ||
path: coverage | ||
- name: Process Coverage | ||
run: npx nyc report --check-coverage --branches 96.13 --functions 96.16 --lines 98.34 --statements 98.25 --reporter lcov --reporter text --reporter clover -t coverage | ||
- uses: geekyeggo/delete-artifact@v1 | ||
with: | ||
name: coverage-artifacts | ||
failOnError: false | ||
# jobs: | ||
# Shared: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# ci_node_total: [4] | ||
# ci_node_index: [0, 1, 2, 3] | ||
# env: | ||
# CI_NODE_TOTAL: ${{ matrix.ci_node_total }} | ||
# CI_NODE_INDEX: ${{ matrix.ci_node_index }} | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '18.15.0' | ||
# - name: Collect Workflow Telemetry | ||
# uses: runforesight/workflow-telemetry-action@v1 | ||
# with: | ||
# comment_on_pr: false | ||
# - name: Install Node Dependencies | ||
# run: npm ci | ||
# - name: Shared | ||
# run: | | ||
# export TESTFILES=$(npx ts-node split-tests-glob.ts -shared) | ||
# NODE_INDEX=${{ matrix.ci_node_index }} npm run test:shared:ci | ||
# - name: Rename coverage to shard coverage | ||
# run: | | ||
# mkdir -p coverage | ||
# cp shared/coverage/${{ matrix.ci_node_index }}/lcov.info coverage/lcov-${{ matrix.ci_node_index }}.info | ||
# cp shared/coverage/${{ matrix.ci_node_index }}/coverage-final.json coverage/coverage-${{ matrix.ci_node_index }}.json | ||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: coverage-artifacts | ||
# path: coverage | ||
# check-coverage: | ||
# runs-on: ubuntu-latest | ||
# needs: [Shared] | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: coverage-artifacts | ||
# path: coverage | ||
# - name: Process Coverage | ||
# run: npx nyc report --check-coverage --branches 96.13 --functions 96.16 --lines 98.34 --statements 98.25 --reporter lcov --reporter text --reporter clover -t coverage | ||
# - uses: geekyeggo/delete-artifact@v1 | ||
# with: | ||
# name: coverage-artifacts | ||
# failOnError: false |