From 13d567ad187ec5b7271b68b6c93f8d3f8d713970 Mon Sep 17 00:00:00 2001 From: Brian Durand Date: Sat, 11 Nov 2023 08:45:39 -0800 Subject: [PATCH] add regression test --- .github/workflows/continuous_integration.yml | 2 +- .github/workflows/regression_test.yml | 29 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/regression_test.yml diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 8aa610f..1f9f895 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -33,7 +33,7 @@ jobs: - ruby: "2.5" appraisal: "activerecord_5" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby }} uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/regression_test.yml b/.github/workflows/regression_test.yml new file mode 100644 index 0000000..d186fea --- /dev/null +++ b/.github/workflows/regression_test.yml @@ -0,0 +1,29 @@ +name: Regression Test +on: + workflow_dispatch: + schedule: + - cron: "0 15 * * 1" +env: + BUNDLE_CLEAN: "true" + BUNDLE_PATH: vendor/bundle + BUNDLE_JOBS: 3 + BUNDLE_RETRY: 3 +jobs: + specs: + name: Run specs + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ruby + - name: Install bundler + run: | + bundle update + - name: Run specs + run: | + bundle exec rake spec