Skip to content

Commit

Permalink
ci: create github actions pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jun 6, 2021
1 parent b14c20e commit 0bd300e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,38 @@
name: ci
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- main
- v*.*.x
tags:
- v*.*.*
pull_request:
types: [opened, synchronize]
branches:
- '*'

jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: bundle install --local || bundle install
- run: bundle exec rake rubocop

test:
needs: ["rubocop"]
strategy:
matrix:
ruby: ["2.5", "2.6", "2.7", "3.0", "head"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- run: bundle exec rake test

0 comments on commit 0bd300e

Please sign in to comment.