Skip to content

Commit

Permalink
Use GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored and albb0920 committed Sep 9, 2022
1 parent 5711eea commit 55b4a7a
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI
on: [push, pull_request]

jobs:
linters:
name: Linters
# Run linting only once, on a single platform
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true

- name: Setup Node
uses: actions/setup-node@v1

- name: Run linters
run: |
bundle exec rake standard:fix
tests:
name: Tests
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby:
- 2.5
- 2.6
- 2.7
- '3.0'

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Setup Node
uses: actions/setup-node@v1

- name: Run tests
run: bundle exec rake spec

0 comments on commit 55b4a7a

Please sign in to comment.