Skip to content

Commit c269163

Browse files
authored
Add ci [ci skip] (#141)
* Add github actions to run tests * Add ruby version * Install dependencies * touchup * v * update CI * update image * update run * Install hatchet * hatchet setup * setup hatchet user
1 parent 7cfd1d5 commit c269163

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/rspec.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI tests
2+
on:
3+
push:
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
ruby: [ '3.0', '3.1', '3.2', '3.3' ]
10+
env:
11+
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
12+
HEROKU_API_USER: ${{ secrets.HEROKU_API_USER }}
13+
14+
name: Setup env & run tests with Ruby ${{ matrix.ruby }}
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: ${{ matrix.ruby }}
23+
24+
- name: "Install dependencies"
25+
run: bundle install --jobs=4 --retry=3 --path vendor/bundle
26+
- name: "Hatchet setup"
27+
run: bundle exec hatchet ci:setup
28+
- name: "Run tests"
29+
run: bundle exec rspec

0 commit comments

Comments
 (0)