Skip to content

Bump tapioca from df6e272 to cffc4c9 #2242

Bump tapioca from df6e272 to cffc4c9

Bump tapioca from df6e272 to cffc4c9 #2242

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '02 4 * * *'
jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- run : bundle exec rake rubocop
rbi-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- run : bundle exec tapioca gem --verify
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- run : bundle exec srb
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
RUN_GENERATORS: ${{ matrix.run_generators }}
PGPASSWORD: password
DATABASE_ADAPTER: ${{ matrix.database_adapter }}
DATABASE_NAME: ${{ matrix.database_name }}
DATABASE_PASSWORD: ${{ matrix.database_password }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
strategy:
fail-fast: false
matrix:
rvm: ["3.2.2"]
gemfile: ["Gemfile"]
bundler: ['default']
run_generators: ["false"]
database_adapter: ['sqlite3']
database_name: [":memory:"]
database_password: ["password"]
include:
- rvm: ruby-head
gemfile: gemfiles/rails_master.gemfile
bundler: 'default'
run_generators: "false"
database_adapter: 'sqlite3'
database_name: ":memory:"
- rvm: 2.7
gemfile: gemfiles/rails_5.2.gemfile
bundler: 'default'
run_generators: "false"
database_adapter: 'sqlite3'
database_name: ":memory:"
- rvm: 2.7
gemfile: gemfiles/rails_6.0.gemfile
bundler: 'default'
run_generators: "false"
database_adapter: 'sqlite3'
database_name: ":memory:"
- rvm: 2.7
gemfile: gemfiles/rails_5.2.gemfile
bundler: 'default'
run_generators: "false"
database_adapter: 'sqlite3'
database_name: ":memory:"
- rvm: 2.7
gemfile: gemfiles/rails_6.0.gemfile
bundler: 'default'
run_generators: "true"
database_adapter: 'sqlite3'
database_name: ":memory:"
- rvm: 2.7
gemfile: gemfiles/rails_6.0.gemfile
bundler: 'default'
database_adapter: 'postgresql'
database_name: 'ci_test'
database_password: "password"
run_generators: "false"
- rvm: 3
gemfile: gemfiles/rails_7.0.gemfile
bundler: 'default'
run_generators: "true"
database_adapter: 'sqlite3'
database_name: ":memory:"
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install libyaml-dev
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.rvm }}
bundler: ${{ matrix.bundler }}
bundler-cache: true
- run: psql -c 'create database ci_test;' -U postgres -h localhost
- run: bundle exec rake
readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- run: 'bundle exec rake readme'
documentation:
runs-on: ubuntu-latest
needs: ['test', 'static']
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- run: 'bundle exec yard doc --private'
- uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: doc