Skip to content

Commit

Permalink
fix: Set timeout for GitHub Actions workflow (#5503)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalters512 committed Mar 11, 2022
1 parent 6849ee1 commit 28da372
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -4,7 +4,6 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -55,6 +54,11 @@ jobs:
run: docker exec test_container /PrairieLearn/docker/typecheck_python.sh
- name: Run the JavaScript tests
run: docker exec test_container /PrairieLearn/docker/test_js.sh
# The JS tests hang relatively often when someone makes a mistake in a PR,
# and the GitHub Actions default timeout is 6 hours, so the CI run keeps
# spinning until it eventually times out. This shorter timeout helps
# ensure that the tests fail more quickly so that people can fix them.
timeout-minutes: 30
- name: Run the Python tests
run: docker exec test_container /PrairieLearn/docker/test_python.sh
- name: Copy code-coverage data out of container
Expand Down

0 comments on commit 28da372

Please sign in to comment.