Skip to content

💚 fix continue-on-error: true #26

💚 fix continue-on-error: true

💚 fix continue-on-error: true #26

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.3.0'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
working-directory: wikidotrb
- name: Make config.yml
run: |
echo "test:" > wikidotrb/config.yml
echo " username: '${{ secrets.WIKIDOT_USERNAME }}'" >> wikidotrb/config.yml
echo " password: '${{ secrets.WIKIDOT_PASSWORD }}'" >> wikidotrb/config.yml
echo " site: '${{ secrets.WIKIDOT_SITE }}'" >> wikidotrb/config.yml
shell: bash
- name: Run tests and collect logs
run: |
mkdir -p logs
bundle exec rspec --format RspecJunitFormatter --out logs/rspec.xml --format progress
bundle exec rspec --format documentation
working-directory: wikidotrb
continue-on-error: true
- name: Generate test coverage
run: |
bundle exec rspec --format progress
bundle exec simplecov
working-directory: wikidotrb
- name: Upload coverage and logs as artifacts
uses: actions/upload-artifact@v3
with:
name: logs-and-coverage
path: |
wikidotrb/logs
wikidotrb/coverage