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 0523e2d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- 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 0523e2d

Please sign in to comment.