Skip to content

Commit

Permalink
Setup GitHub Actions to test and lint
Browse files Browse the repository at this point in the history
Add a CI action that runs test and lint jobs on pushes and pull requests
to main.
  • Loading branch information
liveh2o committed Mar 4, 2024
1 parent 16b895f commit 27cd007
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow uses actions that are not certified by GitHub. They are
# provided by a third-party and are governed by separate terms of service,
# privacy policy, and support documentation.
#
# This workflow will install a prebuilt Ruby version, install dependencies, and
# run tests and linters.
name: "CI"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: "3.0"
- name: Lint with the Standard Ruby style guide and test with RSpec
run: rake

0 comments on commit 27cd007

Please sign in to comment.