-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (46 loc) · 1.24 KB
/
smoke-tests-9-6.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Smoke Test PG 9.6
on: [push]
concurrency:
group: branch-smoke-9-6-${{ github.ref }}
cancel-in-progress: true
jobs:
pgbench-rspec:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "3.0.5"
- "3.1.3"
- "3.2.1"
- "3.3.0"
services:
postgres:
image: postgres:9.6.2-alpine
ports:
- 5432:5432
env:
POSTGRES_USER: jamesbond
POSTGRES_DB: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 10s --health-retries 20
steps:
- uses: actions/checkout@v1
- name: Install dependent libraries
run: sudo apt install -y postgresql-client
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Bundle install
env:
RAILS_ENV: test
run: |
gem install bundler
bundle install --jobs 4 --retry 3 --path vendor/bundle
- name: Run pgbench and rspec
run: bundle exec rspec spec/lib/smoke_spec.rb
env:
POSTGRES_USER: jamesbond
POSTGRES_DB: postgres
CI: true