.github/workflows/linux.yml in fluent-plugin-sql-2.3.0 vs .github/workflows/linux.yml in fluent-plugin-sql-2.3.1

- old
+ new

@@ -1,43 +1,22 @@ -name: linux +name: Test on: - - push - - pull_request + push: + branches: [master] + pull_request: + branches: [master] jobs: build: runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false matrix: - ruby: [ '2.5', '2.6', '2.7', '3.0' ] - postgres: [ '9', '10', '11', '12', '13' ] + ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7' ] + postgres: [ '16', '15', '14', '13', '12' ] os: - ubuntu-latest - experimental: [false] - include: - - ruby: head - postgres: '9' - os: ubuntu-latest - experimental: true - - ruby: head - postgres: '10' - os: ubuntu-latest - experimental: true - - ruby: head - postgres: '11' - os: ubuntu-latest - experimental: true - - ruby: head - postgres: '12' - os: ubuntu-latest - experimental: true - - ruby: head - postgres: '13' - os: ubuntu-latest - experimental: true services: postgres: image: postgres:${{ matrix.postgres }} ports: - 5432:5432 @@ -50,20 +29,18 @@ --health-interval 10s --health-timeout 5s --health-retries 5 name: Ruby ${{ matrix.ruby }} with PostgreSQL ${{ matrix.postgres }} unit testing on ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} + bundler-cache: true - name: prepare database env: PGPASSWORD: password run: | psql -h localhost -p 5432 -U postgres -c "CREATE ROLE fluentd WITH LOGIN ENCRYPTED PASSWORD 'fluentd';" psql -h localhost -p 5432 -U postgres -c "CREATE DATABASE fluentd_test OWNER fluentd;" - name: unit testing - run: | - gem install bundler rake - bundle install --jobs 4 --retry 3 - bundle exec rake test + run: bundle exec rake test