feat(client): expanded display and access of audit log page to all au… #221
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: Build and Test | |
on: | |
push: | |
branches: | |
- development | |
pull_request: | |
branches: | |
- master | |
- development | |
env: | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
DOCKER_BUILDKIT: 1 | |
GITHUB_ACTIONS_ENV: 1 | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.14 | |
- uses: actions/checkout@v3 | |
- name: Build code | |
run: | | |
echo -n em > keys/db_user | |
echo -n toor > keys/db_password | |
docker-compose -f docker-compose.dev.yml run --entrypoint='/bin/bash -c "lerna bootstrap && lerna run build --ignore client"' dev-setup | |
echo "REACT_APP_HOST_NAME=events.md.cap.gov" >> packages/client/.env | |
echo "REACT_APP_RECAPTCHA_KEY={{ secrets.RECAPTCHA_PUBLIC_KEY }}" >> packages/client/.env | |
echo "SKIP_PREFLIGHT_CHECK=true" >> packages/client/.env | |
yarn run --cwd=packages/client build | |
- name: Test code | |
run: | | |
sudo systemctl start mysql.service | |
yarn run --cwd=packages/server-jest-config test | |
yarn run --cwd=packages/server-common test | |
yarn run --cwd=packages/server test | |
yarn run --cwd=packages/client test |