Bump faker from 3.2.0 to 3.2.1 (#172) #536
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "2.7" | |
- "3.0" | |
- "3.1" | |
- "3.2" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- uses: harmon758/postgresql-action@v1 | |
with: | |
postgresql version: 14 | |
postgresql db: grape_boilerplate_test | |
postgresql user: test | |
postgresql password: password | |
- name: Run tests | |
run: | | |
bundle exec rake db:setup | |
bundle exec rake spec | |
env: | |
DATABASE_URL: postgres://test:password@127.0.0.1:5432/grape_boilerplate_test | |
RACK_ENV: test | |
- name: Updload code coverage results | |
if: matrix.ruby == 3.2 | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |