mirror of
https://github.com/samsonjs/csc360-a1-shell.git
synced 2026-03-25 08:45:52 +00:00
Add GitHub workflow to run ruby tests
This commit is contained in:
parent
f9e7dfe144
commit
5774ea89fb
1 changed files with 27 additions and 0 deletions
27
.github/workflows/test.yml
vendored
Normal file
27
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
ruby:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ruby
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
env:
|
||||
BUNDLE_GEMFILE: ruby/Gemfile
|
||||
with:
|
||||
ruby-version: 4.0.0
|
||||
bundler-cache: true
|
||||
- name: Run tests
|
||||
run: bundle exec rake test
|
||||
- name: Run standard
|
||||
run: bundle exec rake standard
|
||||
Loading…
Reference in a new issue