-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (42 loc) · 1.1 KB
/
specs.yml
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
name: Run Specs
on:
push:
permissions:
contents: read
# We need write access to the id-token to use workload identity federation
id-token: write
packages: read
# Needed for getting PR labels
pull-requests: read
env:
PGDATABASE: que-test
PGUSER: ubuntu
PGPASSWORD: password
PGHOST: localhost
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ["2.6", "2.7", "3.0"]
services:
postgres:
image: postgres:11.2
env:
POSTGRES_DB: que-test
POSTGRES_USER: ubuntu
POSTGRES_PASSWORD: password
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: gocardless/github-actions/actions/ruby-bundle-install@master
with:
known_hosts: ${{ secrets.KNOWN_HOSTS_GITHUB_KEY }}
robot_ssh_key: ${{ secrets.ROBOT_SSH_KEY }}
token: ${{ secrets.GOCARDLESS_CI_ROBOT_TOKEN }}
ruby-version: "${{ matrix.ruby-version }}"
- name: Run Specs
run: |
bundle exec rspec