This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
Bump version: 2.0.6 → 2.1.0 #244
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: "Rails testing" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main", "next"] | |
jobs: | |
rancher_on_eks: | |
runs-on: ubuntu-latest | |
env: | |
RAILS_ENV: test | |
LASSO_WORKFLOW: RancherOnEks | |
LASSO_ENGINES: AWS,ShirtSize,PreFlight,RancherOnEks,Helm | |
CI: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: 3.1.2 | |
- name: Set up database schema | |
run: bin/rails db:reset | |
- name: Run rspec | |
run: bin/rspec --format documentation | |
rancher_on_aks: | |
runs-on: ubuntu-latest | |
env: | |
RAILS_ENV: test | |
LASSO_WORKFLOW: RancherOnAks | |
LASSO_ENGINES: Azure,ShirtSize,PreFlight,RancherOnAks,Helm | |
CI: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: 3.1.2 | |
- name: Set up database schema | |
run: bin/rails db:reset | |
- name: Run rspec | |
run: bin/rspec --format documentation | |
coverage: | |
needs: [rancher_on_aks, rancher_on_eks] | |
runs-on: ubuntu-latest | |
env: | |
RAILS_ENV: test | |
CI: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: 3.1.2 | |
- name: Set up database schema | |
run: bin/rails db:reset | |
- name: Run coverage suite | |
run: bin/rails coverage | |
- uses: joshmfrankel/simplecov-check-action@main | |
with: | |
minimum_suite_coverage: 80 | |
minimum_file_coverage: 0 | |
github_token: ${{ secrets.GITHUB_TOKEN }} |