Skip to content

Improve pipeline extraction #7

Improve pipeline extraction

Improve pipeline extraction #7

Workflow file for this run

name: Run Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
env:
TERM: xterm-256color
BM: "true"
FORCE_COLOR: "1"
strategy:
matrix:
ruby-version: ["3.3"]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Run tests
run: |
output=$(bundle exec rake 2>&1)
echo "test_output<<EOF" >> $GITHUB_OUTPUT
echo "$output" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
continue-on-error: true
- name: Display test output
run: |
echo "${{ steps.run_tests.outputs.test_output }}"
if: always()
- name: Check test results
run: |
if [[ "${{ steps.run_tests.outcome }}" == "failure" ]]; then
echo "Tests failed"
exit 1
fi