Composite actions for common CI/CD tasks at 84codes.
Working at 84codes? Please note that this repository is public!
Sets up everything needed for Ruby CI: PostgreSQL, LavinMQ, and Ruby environment.
- uses: 84codes/actions/ruby-ci-setup@main
with:
postgres: true
lavinmq: true
github-token: ${{ secrets.GITHUB_TOKEN }}Run Ruby test commands in your workflow.
- uses: 84codes/actions/ruby-test-step@main
with:
run: bundle exec rake testRun RuboCop linting with reviewdog (assumes Ruby is already set up).
- uses: 84codes/actions/rubocop-lint@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}name: CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
steps:
# Setup Ruby environment with PostgreSQL
- uses: 84codes/actions/ruby-ci-setup@main
with:
postgres: true
github-token: ${{ secrets.GITHUB_TOKEN }}
# Run tests
- uses: 84codes/actions/ruby-test-step@main
with:
run: bundle exec rake test
# Run linting
- uses: 84codes/actions/rubocop-lint@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}