update secret variable #8
Workflow file for this run
This file contains 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: 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@v4 | |
- uses: gocardless/github-actions/actions/ruby-bundle-install@master | |
with: | |
known_hosts: ${{ secrets.KNOWN_HOSTS_GITHUB_KEY }} | |
robot_ssh_key: ${{ secrets.ROBOT_READONLY_SSH_KEY }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
ruby-version: "${{ matrix.ruby-version }}" | |
- name: Run Specs | |
run: | | |
bundle exec rspec |