Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
We don't need to cache anything as the ruby/setup-ruby@v1 action takes
care of that for us.

It also sets up the appropriate version of Bundler for our Ruby version
(currently Ruby 2.7.8 and Bundler 2.4.22).

The sqlite setup is also taken care of for us.

Lastly some naming niceties, e.g this is our continuous intergration
rather than a 'build'.
  • Loading branch information
mec committed Feb 23, 2024
1 parent e4340ee commit 686fcb5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI
on: [push, pull_request]
jobs:
lint-and-test:
name: Linting, specs and coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run linting
run: bin/standardrb
- name: Run specs
run: bin/rspec
- name: Run coverage report
uses: coverallsapp/github-action@v2
with:
fail-on-error: false

0 comments on commit 686fcb5

Please sign in to comment.