Skip to content

pedantic-git is running the tests #80

pedantic-git is running the tests

pedantic-git is running the tests #80

Workflow file for this run

name: tests
run-name: ${{ github.actor }} is running the tests
on: [push]
jobs:
run-tests:
name: Run ${{ matrix.command }} tests
runs-on: ubuntu-latest
strategy:
matrix:
command: [rspec, spinach]
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: s3sam3
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10ms
--health-timeout 500ms
--health-retries 15
env:
NAME_PN_POSTGRESQL_SERVICE_HOST: localhost
POSTGRES_PASSWORD: s3sam3
CI: true
JWT_SECRET: ecc9bd09c69b20112918a7eb50b5a09d9e97cb9f51ab417208d3f93939c013cfd9cf3de9003b6a688592141c475aeeb660036b43d5e675e96583e389b234ce59
steps:
- uses: actions/checkout@v3
- name: Install libvips
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libvips-dev
version: 1.0
- name: Install Ruby & gem dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.3'
bundler-cache: true
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- name: Install yarn dependencies
run: yarn install --frozen-lockfile
- name: Set up database
run: bin/rails db:setup
- name: Build assets
run: bin/rails assets:precompile
- name: Run ${{ matrix.command }}
run: bin/${{ matrix.command }}