Bump caniuse-lite from 1.0.30001255 to 1.0.30001675 #1618
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: Build and Test | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:9.6 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: teamplan_test | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Redis | |
uses: shogo82148/actions-setup-redis@v1 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Yarn install | |
run: yarn install | |
- name: Set up Postgres | |
run: | | |
bundle exec rails db:create | |
bundle exec rails db:schema:load | |
env: | |
PGHOST: 127.0.0.1 | |
PGUSER: postgres | |
PGPASSWORD: postgres | |
RAILS_ENV: test | |
- name: Run tests | |
env: | |
PGHOST: 127.0.0.1 | |
PGUSER: postgres | |
PGPASSWORD: postgres | |
RAILS_ENV: test | |
run: bundle exec rake | |
- name: Save screenshots | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: screenshots | |
path: tmp/screenshots/ | |
if-no-files-found: ignore |