From 1cf1a88946ae47c64d49ddf8cb888de028aa536e Mon Sep 17 00:00:00 2001 From: Nora Sandler Date: Mon, 8 Jul 2024 19:17:06 +0000 Subject: [PATCH] add CI check to run test suite against each commit --- .github/workflows/test_all_commits.yaml | 14 ++++++++++++++ .github/workflows/test_tests.yaml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test_all_commits.yaml diff --git a/.github/workflows/test_all_commits.yaml b/.github/workflows/test_all_commits.yaml new file mode 100644 index 00000000..990a21c2 --- /dev/null +++ b/.github/workflows/test_all_commits.yaml @@ -0,0 +1,14 @@ +# Run test_each_chapter.yaml, from nqcc2 repo, to make sure we're not +# e.g. using a language feature before the test where it's added + +name: Test All Chapters + +on: + pull_request: + branches: [ "main" ] + +jobs: + test_all_chapters: + uses: nlsandler/nqcc2/.github/workflows/test_each_chapter.yaml@extra-credit + with: + tests-branch: ${{ github.head_ref }} \ No newline at end of file diff --git a/.github/workflows/test_tests.yaml b/.github/workflows/test_tests.yaml index 78c23684..a6e92ba8 100644 --- a/.github/workflows/test_tests.yaml +++ b/.github/workflows/test_tests.yaml @@ -5,7 +5,7 @@ name: Compiler Test Suite CI on: pull_request: - branches: [ "main", "complete-test-suite" ] + branches: [ "main" ] workflow_dispatch: