Fix some strange issues in player #629
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test_lint: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
database_adapter: | |
- postgresql | |
- sqlite | |
env: | |
DB_ADAPTER: ${{ matrix.database_adapter }} | |
DB_URL: postgresql://postgres:postgres@localhost/black_candy_test | |
services: | |
postgres: | |
image: postgres:latest | |
ports: ['5432:5432'] | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 3 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- run: yarn install | |
- name: Test and Lint | |
run: | | |
sudo apt-get update | |
sudo apt-get -yqq install libpq-dev imagemagick ffmpeg | |
bundle exec rails db:setup | |
bundle exec rails lint:all | |
bundle exec rails test:all | |
- name: Push coverage data to Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |