Skip to content

chore: upgrade codecov github workflow #2

chore: upgrade codecov github workflow

chore: upgrade codecov github workflow #2

Workflow file for this run

name: Unit test
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis
ports: ["6379:6379"]
options: --entrypoint redis-server
steps:

Check failure on line 23 in .github/workflows/ruby.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ruby.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build and test with Rake
run: |
sudo gem install bundler:2.0.1
bundle install --jobs 4 --retry 3
bundle exec rails db:setup RAILS_ENV=test
cp .env.test.local.travis .env.test.local
bundle exec rails test RAILS_ENV=test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./coverage
fail_ci_if_error: true
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true