ci #1742
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: 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 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- 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 --no-document | |
- 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 | |
on: | |
push: | |
schedule: | |
- cron: '0 1 * * *' |