Skip to content

Remove dependency #1391

Remove dependency

Remove dependency #1391

Workflow file for this run

name: Rspec
on:
push:
jobs:
rspec:

Check failure on line 7 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Rspec

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 7, Col: 3): The workflow must contain at least one job with no dependencies.
needs: rubocop
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: password
POSTGRES_DB: zero_waste_test
ports:
- 5432:5432
options: >-
--mount type=tmpfs,destination=/var/lib/postgresql/data
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
RAILS_ENV: test
DATABASE_URL: postgres://test:password@localhost:5432/zero_waste_test
USE_STATIC_ASSETS: true
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.5
bundler-cache: true
- name: Update packages
run: sudo apt-get update
- name: Install system dependencies
run: sudo apt-get install -y libvips42 libvips-dev imagemagick
- uses: actions/setup-node@v1
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- uses: nanasess/setup-chromedriver@master
- name: Prepare config
run: |
mv config/database.yml.docker config/database.yml
- name: Precompile assets
run: |
bundle exec rails assets:precompile
- name: Run tests
run: |
bundle exec rspec ./spec -f j -o tmp/rspec_results.json -f p
- name: RSpec Report
uses: SonicGarden/rspec-report-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
json-path: tmp/rspec_results.json
if: always()