ci: add dependabot.yml to update GitHub actions regularly #28
Workflow file for this run
This file contains hidden or 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: linux | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0' ] | |
| postgres: [ '9', '10', '11', '12', '13' ] | |
| os: | |
| - ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:${{ matrix.postgres }} | |
| ports: | |
| - 5432:5432 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: test | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: prepare database | |
| env: | |
| PGPASSWORD: password | |
| run: | | |
| psql -h localhost -p 5432 -U postgres -c "create role fluentd with LOGIN CREATEDB password 'fluentd';" | |
| psql -h localhost -p 5432 -U postgres -c "create database pgjsontest owner fluentd encoding 'utf-8'" -U postgres | |
| - name: unit testing | |
| env: | |
| CI: true | |
| run: | | |
| gem install bundler rake | |
| bundle install --jobs 4 --retry 3 | |
| bundle exec rake test |