Enable scheduling of bots. #141
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: Run Tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
Tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: yarn config set ignore-engines true && yarn install | |
- name: Generate Prisma Client and Test | |
run: npx prisma generate && yarn test 2>&1 | tee test-report.txt | |
continue-on-error: true | |
env: | |
PSQL_DB_URL: postgresql://john_doe:secretpassword@localhost:5432/mydatabase | |
- name: Check Test Results | |
run: | | |
if grep -qi "Test Suites: .* failed" test-report.txt; then | |
echo "Tests have failed." | |
exit 1 | |
else | |
echo "Tests have passed." | |
fi |