|
| 1 | +name: Client Integration |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - dependency-updates |
| 8 | + - test |
| 9 | + |
| 10 | +jobs: |
| 11 | + client_integration: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + ci_node_total: [12] |
| 17 | + ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] |
| 18 | + env: |
| 19 | + CI: true |
| 20 | + SKIP_CACHE_INVALIDATION: true |
| 21 | + TEMP_DOCUMENTS_BUCKET_NAME: noop-temp-documents-local-us-east-1 |
| 22 | + QUARANTINE_BUCKET_NAME: noop-quarantine-local-us-east-1 |
| 23 | + DOCUMENTS_BUCKET_NAME: noop-documents-local-us-east-1 |
| 24 | + S3_ENDPOINT: http://localhost:9000 |
| 25 | + MASTER_DYNAMODB_ENDPOINT: http://localhost:8000 |
| 26 | + AWS_ACCESS_KEY_ID: S3RVER |
| 27 | + AWS_SECRET_ACCESS_KEY: S3RVER |
| 28 | + CIRCLECI: true |
| 29 | + CI_NODE_TOTAL: ${{ matrix.ci_node_total }} |
| 30 | + CI_NODE_INDEX: ${{ matrix.ci_node_index }} |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v2 |
| 33 | + - name: Configure sysctl limits |
| 34 | + run: | |
| 35 | + sudo swapoff -a |
| 36 | + sudo sysctl -w vm.swappiness=1 |
| 37 | + sudo sysctl -w fs.file-max=262144 |
| 38 | + sudo sysctl -w vm.max_map_count=262144 |
| 39 | + - name: Runs Elasticsearch |
| 40 | + uses: elastic/elastic-github-actions/elasticsearch@master |
| 41 | + with: |
| 42 | + stack-version: 7.10.2 |
| 43 | + security-enabled: false |
| 44 | + - name: Setup DynamoDB Local |
| 45 | + uses: rrainn/dynamodb-action@v2.0.1 |
| 46 | + with: |
| 47 | + port: 8000 |
| 48 | + cors: '*' |
| 49 | + - name: Web Client - Integration Test |
| 50 | + run: | |
| 51 | + npm ci --legacy-peer-deps |
| 52 | + mkdir -p /tmp/web-client |
| 53 | + npm run start:api:ci > /tmp/web-client/server-output.txt & |
| 54 | + URL=http://localhost:4000/api/swagger ./wait-until.sh |
| 55 | + URL=http://localhost:9200 ./wait-until.sh |
| 56 | + URL=http://localhost:9000/ ./wait-until.sh |
| 57 | + URL=http://localhost:8000/shell ./wait-until.sh |
| 58 | + sleep 40 # figure out why we need to sleep here since we wait above ^ |
| 59 | + export TESTFILES=$(node split-tests.js) |
| 60 | + npm run test:client:integration:ci |
| 61 | + - name: Store Video Artifacts |
| 62 | + uses: actions/upload-artifact@v3 |
| 63 | + with: |
| 64 | + name: server log output |
| 65 | + path: /tmp/web-client/server-output.txt |
0 commit comments