[IOPLT-370] Adds the filtering handler #175
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: 'Code Review' | |
on: | |
push: | |
branches: ['main'] | |
paths: | |
- apps/** | |
- packages/** | |
- package.json | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- src/** | |
- package.json | |
workflow_dispatch: {} | |
jobs: | |
code_review: | |
timeout-minutes: 10 # temp fix | |
runs-on: ubuntu-latest | |
environment: IntegrationTests | |
steps: | |
- name: Check out code | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 | |
with: | |
fetch-depth: 2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c #v3.6.0 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Cache turbo build setup | |
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 #v3.3.1 | |
with: | |
path: node_modules/.cache/turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-turbo- | |
- name: 'Code review' | |
run: yarn run code-review | |
- name: Set env | |
run: | | |
echo "NODE_TLS_REJECT_UNAUTHORIZED=0" >> $GITHUB_ENV | |
echo "COSMOSDB_NAME=${{github.run_id}}" >> $GITHUB_ENV | |
echo "COSMOSDB_CONNECTION_STRING=${{secrets.COSMOSDB_CONNECTION_STRING}}" >> $GITHUB_ENV | |
- name: Stop containers if up | |
run: | | |
docker-compose --env-file "__integrations__/environments/.env" -f "__integrations__/docker-compose.yml" stop | |
docker-compose --env-file "__integrations__/environments/.env" -f "__integrations__/docker-compose.yml" down | |
- name: Start containers | |
run: docker-compose --env-file "__integrations__/environments/.env" -f "__integrations__/docker-compose.yml" up -d | |
- name: Sleep | |
run: sleep 30s | |
- name: System tests | |
run: | | |
cd __integrations__ | |
yarn install --immutable | |
yarn test | |
- name: Stop containers | |
run: | | |
docker-compose --env-file "__integrations__/environments/.env" -f "__integrations__/docker-compose.yml" stop | |
docker-compose --env-file "__integrations__/environments/.env" -f "__integrations__/docker-compose.yml" down |