Skip to content

ci

ci #1762

Workflow file for this run

name: ci
jobs:
specs:
needs: diffend
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.3'
include:
- ruby: '3.3'
coverage: 'true'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install package dependencies
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
- name: Install latest bundler
run: |
gem install bundler -N
- name: Bundle install
env:
DIFFEND_DEVELOPMENT: true
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run all tests
env:
GITHUB_COVERAGE: ${{matrix.coverage}}
run: |
git config --global user.email "ci@coditsu.io"
git config --global user.name "Coditsu CI"
bundle exec rspec
diffend:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Install latest bundler
run: gem install bundler -N
- name: Install Diffend plugin
run: bundle plugin install diffend
- name: Bundle Secure
run: bundle secure
coditsu:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Coditsu
env:
CODITSU_API_KEY: ${{ secrets.CODITSU_API_KEY }}
CODITSU_API_SECRET: ${{ secrets.CODITSU_API_SECRET }}
run: \curl -sSL https://api.coditsu.io/run/ci | bash
coditsu-candidate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Coditsu
env:
CODITSU_API_KEY: ${{ secrets.CODITSU_API_KEY }}
CODITSU_API_SECRET: ${{ secrets.CODITSU_API_SECRET }}
CODITSU_IMAGE_TAG: candidate
run: \curl -sSL https://api.coditsu.io/run/ci | bash
on:
push:
schedule:
- cron: '0 1 * * *'