10007 story #6774
Workflow file for this run
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
name: Node.js Client Integration Tests | |
on: | |
pull_request: | |
jobs: | |
client_integration: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ci_node_total: [12] | |
ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] | |
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 | |
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) | |
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 |