Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

[CI] Update workflows to fetch secrets from GSM #7

[CI] Update workflows to fetch secrets from GSM

[CI] Update workflows to fetch secrets from GSM #7

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0.4', '3.2']
services:
mysql:
image: mysql/mysql-server:5.6
ports: ['3309:3306']
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: bookstore
MYSQL_USER: bookstore
MYSQL_PASSWORD: bookstore
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
env:
BUNDLE_GITHUB__COM: x-access-token:${{secrets.TOPTAL_DEVBOT_TOKEN}}
run:
bundle install && cd spec/support/bookstore && bundle install
- name: Run tests
run: bundle exec rspec