Skip to content

Commit a45f6c7

Browse files
committed
Add a GitHub action to run all tests on push - should fail
1 parent 5a9ce5d commit a45f6c7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/run_tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Run Tests
2+
on: [ push ]
3+
jobs:
4+
run_tests:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout code
8+
uses: actions/checkout@v4
9+
- name: Set up Ruby
10+
uses: ruby/setu-rubyp@v1
11+
with:
12+
ruby-version: .ruby-version
13+
bundler-cache: true
14+
- name: Run specs
15+
run: rake

spec/1_number_format_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1000 => '1,000',
1919
10000 => '10,000',
2020
100000 => '100,000',
21-
1000000 => '1,000,000',
21+
1000000 => '1000,000',
2222
35235235 => '35,235,235',
2323
1_000_000_000 => '1,000,000,000'
2424
}

0 commit comments

Comments
 (0)