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@v4 - 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@v4 - uses: ruby/setup-ruby@v1 with: bundler-cache: true - name: Install dependencies run: bundle install - name: Lint run: bin/rubocop