65b029a677
* Upgrade to Ruby 3.2 * Upgrade and fix rubocop linting * Bundle exec the parse issue command * Go back to manually installing dependencies for issue ops
33 lines
681 B
YAML
33 lines
681 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
# env:
|
|
# ImageOs must be configured to match the OS of the runner when using self-hosted runners.
|
|
# ImageOS: ubuntu22
|
|
|
|
jobs:
|
|
unit-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ruby/setup-ruby@v1
|
|
- name: Install dependencies
|
|
run: bundle install
|
|
- name: Run specs
|
|
run: bin/rspec
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
- name: Install dependencies
|
|
run: bundle install
|
|
- name: Lint
|
|
run: bin/rubocop
|