nightly acceptance tests on production #895
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
on: | |
schedule: | |
# 02:00 UTC | |
- cron: '0 2 * * *' | |
name: nightly acceptance tests on production | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
ruby: [3.0] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby | |
# (see https://github.com/ruby/setup-ruby#versioning): | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: ${{ matrix.ruby }} | |
- name: Authenticate Google Cloud | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Setup GCloud | |
uses: google-github-actions/setup-gcloud@v2 | |
with: | |
project_id: ${{ secrets.GCP_PROJECT_ID }} | |
- name: Install dependencies | |
run: bundle install | |
- name: Run acceptance tests on production | |
run: bundle exec rake acceptance\[,,,"exclude cases/migration"\] | |
env: | |
SPANNER_TEST_PROJECT: ${{ secrets.GCP_PROJECT_ID }} | |
SPANNER_TEST_INSTANCE: ruby-activerecord-test |