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 - commenting out workflows for faster build
- Loading branch information
1 parent
de687b5
commit 0240e07
Showing
13 changed files
with
496 additions
and
496 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,22 +1,22 @@ | ||
name: Node.js CI - API | ||
# name: Node.js CI - API | ||
|
||
on: | ||
pull_request: | ||
# on: | ||
# pull_request: | ||
|
||
jobs: | ||
API: | ||
runs-on: ubuntu-latest | ||
# jobs: | ||
# API: | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16.1' | ||
- name: Collect Workflow Telemetry | ||
uses: runforesight/workflow-telemetry-action@v1 | ||
with: | ||
comment_on_pr: false | ||
- name: Install Node Dependencies | ||
run: npm ci | ||
- name: API | ||
run: npm run test:api | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '18.16.1' | ||
# - name: Collect Workflow Telemetry | ||
# uses: runforesight/workflow-telemetry-action@v1 | ||
# with: | ||
# comment_on_pr: false | ||
# - name: Install Node Dependencies | ||
# run: npm ci | ||
# - name: API | ||
# run: npm run test:api |
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,37 +1,37 @@ | ||
name: Auto-create PRs to test after staging update | ||
on: | ||
pull_request: | ||
branches: [staging] | ||
types: [closed] | ||
# name: Auto-create PRs to test after staging update | ||
# on: | ||
# pull_request: | ||
# branches: [staging] | ||
# types: [closed] | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
# permissions: | ||
# pull-requests: write | ||
# contents: write | ||
|
||
jobs: | ||
createPullRequest: | ||
if: github.event.pull_request.merged == true | ||
timeout-minutes: 2 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: test | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin staging:staging | ||
git reset --hard staging | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
delete-branch: true | ||
title: 'Auto backmerge staging into test PR' | ||
branch: test-promotion | ||
branch-suffix: timestamp | ||
body: | | ||
Auto backmerge staging into test | ||
- Updated with latest staging branch upon feature branch merge | ||
- Auto-generated by [create-pull-request][1] | ||
# jobs: | ||
# createPullRequest: | ||
# if: github.event.pull_request.merged == true | ||
# timeout-minutes: 2 | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# ref: test | ||
# - name: Reset promotion branch | ||
# run: | | ||
# git fetch origin staging:staging | ||
# git reset --hard staging | ||
# - name: Create Pull Request | ||
# id: cpr | ||
# uses: peter-evans/create-pull-request@v4 | ||
# with: | ||
# delete-branch: true | ||
# title: 'Auto backmerge staging into test PR' | ||
# branch: test-promotion | ||
# branch-suffix: timestamp | ||
# body: | | ||
# Auto backmerge staging into test | ||
# - Updated with latest staging branch upon feature branch merge | ||
# - Auto-generated by [create-pull-request][1] | ||
|
||
[1]: https://github.com/peter-evans/create-pull-request | ||
# [1]: https://github.com/peter-evans/create-pull-request |
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,24 +1,24 @@ | ||
name: Build API Typescript | ||
# name: Build API Typescript | ||
|
||
on: | ||
pull_request: | ||
# on: | ||
# pull_request: | ||
|
||
jobs: | ||
build_ts_api: | ||
runs-on: ubuntu-latest | ||
# jobs: | ||
# build_ts_api: | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16.1' | ||
- name: Collect Workflow Telemetry | ||
uses: runforesight/workflow-telemetry-action@v1 | ||
with: | ||
comment_on_pr: false | ||
- name: Install Node Dependencies | ||
run: npm ci | ||
- name: Build Typescript API | ||
run: | | ||
npm run build:assets | ||
npm run build:lambda:api | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '18.16.1' | ||
# - name: Collect Workflow Telemetry | ||
# uses: runforesight/workflow-telemetry-action@v1 | ||
# with: | ||
# comment_on_pr: false | ||
# - name: Install Node Dependencies | ||
# run: npm ci | ||
# - name: Build Typescript API | ||
# run: | | ||
# npm run build:assets | ||
# npm run build:lambda:api |
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,56 +1,56 @@ | ||
name: Node.js Client Integration Tests | ||
# name: Node.js Client Integration Tests | ||
|
||
on: | ||
pull_request: | ||
# on: | ||
# pull_request: | ||
|
||
jobs: | ||
client_integration_public: | ||
runs-on: ubuntu-latest | ||
# jobs: | ||
# client_integration_public: | ||
# runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ci_node_total: [2] | ||
ci_node_index: [0, 1] | ||
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.16.1' | ||
- name: Configure sysctl limits | ||
run: | | ||
sudo swapoff -a | ||
sudo sysctl -w vm.swappiness=1 | ||
sudo sysctl -w fs.file-max=262144 | ||
sudo sysctl -w vm.max_map_count=262144 | ||
- name: Runs Elasticsearch | ||
uses: elastic/elastic-github-actions/elasticsearch@master | ||
with: | ||
stack-version: 7.10.2 | ||
security-enabled: false | ||
- name: Setup DynamoDB Local | ||
uses: rrainn/[email protected] | ||
with: | ||
port: 8000 | ||
cors: '*' | ||
- name: Collect Workflow Telemetry | ||
uses: runforesight/workflow-telemetry-action@v1 | ||
with: | ||
comment_on_pr: false | ||
- name: Install Node Dependencies | ||
run: npm ci | ||
- name: Web Client - Integration Tests Public | ||
run: | | ||
mkdir -p /tmp/web-client | ||
npm run start:api:ci > /tmp/web-client/server-output${{ matrix.ci_node_index }}.txt & | ||
./wait-until-services.sh | ||
export TESTFILES=$(npx ts-node split-tests.ts -public) | ||
npm run test:client:integration:ci | ||
- name: Store Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: server log output | ||
path: /tmp/web-client/server-output${{ matrix.ci_node_index }}.txt | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# ci_node_total: [2] | ||
# ci_node_index: [0, 1] | ||
# 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.16.1' | ||
# - name: Configure sysctl limits | ||
# run: | | ||
# sudo swapoff -a | ||
# sudo sysctl -w vm.swappiness=1 | ||
# sudo sysctl -w fs.file-max=262144 | ||
# sudo sysctl -w vm.max_map_count=262144 | ||
# - name: Runs Elasticsearch | ||
# uses: elastic/elastic-github-actions/elasticsearch@master | ||
# with: | ||
# stack-version: 7.10.2 | ||
# security-enabled: false | ||
# - name: Setup DynamoDB Local | ||
# uses: rrainn/[email protected] | ||
# with: | ||
# port: 8000 | ||
# cors: '*' | ||
# - name: Collect Workflow Telemetry | ||
# uses: runforesight/workflow-telemetry-action@v1 | ||
# with: | ||
# comment_on_pr: false | ||
# - name: Install Node Dependencies | ||
# run: npm ci | ||
# - name: Web Client - Integration Tests Public | ||
# run: | | ||
# mkdir -p /tmp/web-client | ||
# npm run start:api:ci > /tmp/web-client/server-output${{ matrix.ci_node_index }}.txt & | ||
# ./wait-until-services.sh | ||
# export TESTFILES=$(npx ts-node split-tests.ts -public) | ||
# npm run test:client:integration:ci | ||
# - name: Store Artifacts | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: server log output | ||
# path: /tmp/web-client/server-output${{ matrix.ci_node_index }}.txt |
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 - Client Unit Tests | ||
# name: Node.js CI - Client Unit Tests | ||
|
||
on: | ||
pull_request: | ||
# on: | ||
# pull_request: | ||
|
||
jobs: | ||
Client: | ||
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.16.1' | ||
- name: Collect Workflow Telemetry | ||
uses: runforesight/workflow-telemetry-action@v1 | ||
with: | ||
comment_on_pr: false | ||
- name: Install Node Dependencies | ||
run: npm ci | ||
- name: Test Client Unit | ||
run: | | ||
export TESTFILES=$(npx ts-node split-tests-glob.ts -unit) | ||
NODE_INDEX=${{ matrix.ci_node_index }} npm run test:client:unit:ci | ||
- name: Rename coverage to shard coverage | ||
run: | | ||
mkdir -p coverage | ||
cp web-client/coverage/${{ matrix.ci_node_index }}/lcov.info coverage/lcov-${{ matrix.ci_node_index }}.info | ||
cp web-client/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: [Client] | ||
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 94.56 --functions 97 --lines 97 --statements 97 --reporter lcov --reporter text --reporter clover -t coverage | ||
- uses: geekyeggo/delete-artifact@v1 | ||
with: | ||
name: coverage-artifacts | ||
failOnError: false | ||
# jobs: | ||
# Client: | ||
# 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.16.1' | ||
# - name: Collect Workflow Telemetry | ||
# uses: runforesight/workflow-telemetry-action@v1 | ||
# with: | ||
# comment_on_pr: false | ||
# - name: Install Node Dependencies | ||
# run: npm ci | ||
# - name: Test Client Unit | ||
# run: | | ||
# export TESTFILES=$(npx ts-node split-tests-glob.ts -unit) | ||
# NODE_INDEX=${{ matrix.ci_node_index }} npm run test:client:unit:ci | ||
# - name: Rename coverage to shard coverage | ||
# run: | | ||
# mkdir -p coverage | ||
# cp web-client/coverage/${{ matrix.ci_node_index }}/lcov.info coverage/lcov-${{ matrix.ci_node_index }}.info | ||
# cp web-client/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: [Client] | ||
# 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 94.56 --functions 97 --lines 97 --statements 97 --reporter lcov --reporter text --reporter clover -t coverage | ||
# - uses: geekyeggo/delete-artifact@v1 | ||
# with: | ||
# name: coverage-artifacts | ||
# failOnError: false |
Oops, something went wrong.