Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
- docs: checks that readme has been generated correctly
- tests: linting and tests
  • Loading branch information
apainintheneck committed Nov 18, 2023
1 parent 41aeecf commit 199ea8c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Docs
on:
push:
branches: master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@main

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true

- name: Outdated readme check
run: bundle exec readme:outdated
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI
on:
push:
branches: master
pull_request:
jobs:
tests:
strategy:
matrix:
platform: ["ubuntu-latest", "macos-latest"]
ruby: [2.7, 3.0, 3.1, 3.2]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Git repository
uses: actions/checkout@main

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run linter
run: bundle exec rake lint

- name: Run tests
run: bundle exec rake test

0 comments on commit 199ea8c

Please sign in to comment.