Skip to content
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

Bump version: 2.0.6 → 2.1.0

Bump version: 2.0.6 → 2.1.0 #244

Workflow file for this run

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 }}