This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
Bump actionmailer from 6.1.7.6 to 6.1.7.9 #376
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: postgres:13 | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Install PhantomJS | |
run: | | |
PHANTOM_JS_LATEST=$(curl -s https://bitbucket.org/ariya/phantomjs/downloads/ | grep -i -e zip -e bz2 | grep -vi beta | grep -i linux-x86_64 | grep -v symbols | cut -d '>' -f 2 | cut -d '<' -f 1 | head -n 1) | |
PHANTOM_VERSION=${PHANTOM_JS_LATEST%-*-*.*.*} | |
ARCH=$(uname -m) | |
PHANTOM_JS="$PHANTOM_VERSION-linux-x86_64" | |
sudo apt-get update | |
sudo apt-get -y install build-essential chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev | |
cd ~ | |
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2 | |
tar xvjf $PHANTOM_JS.tar.bz2 | |
sudo mv $PHANTOM_JS /usr/local/share | |
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.4 | |
bundler-cache: true | |
- name: Setup Databse | |
run: | | |
cp config/database.ci.yml config/database.yml | |
bundle exec rails db:setup | |
env: | |
RAILS_ENV: test | |
- name: Run tests | |
env: | |
RAILS_ENV: test | |
CC_TEST_REPORTER_ID: true | |
run: bundle exec rspec --color --format progress --require spec_helper --require rails_helper |