Skip to content

chrome stable

chrome stable #2334

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on:
push:
branches_ignore:
- 'l10n_master2'
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:12
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports: ['6379:6379']
options: --entrypoint redis-server
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test
REDIS_URL: redis://localhost:6379/0
RAILS_ENV: test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
# ruby-version: 2.7.2 # no need with ruby-version file
bundler-cache: true
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Build and precompile
run: |
sudo apt-get -yqq install libpq-dev curl libgconf-2-4
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rails db:prepare
bin/rails tailwindcss:build
bin/rails javascript:build
bundle exec rake assets:precompile
- name: Build and run tests
env:
CHASKIQ_APPSTORE_TOKEN: ${{secrets.CHASKIQ_APPSTORE_TOKEN}}
APPSTORE_DB_URL: postgres://postgres:postgres@localhost:5432/test
run: |
bundle exec rails packages:download_and_install["2.1.10"]
echo "INSTALL NODE"
npm install -g ts-node
echo "RUN SPECS"
bundle exec rspec -fd ./spec
- name: Build and run E2E tests
env:
CHASKIQ_APPSTORE_TOKEN: ${{secrets.CHASKIQ_APPSTORE_TOKEN}}
APPSTORE_DB_URL: postgres://postgres:postgres@localhost:5432/test
run: |
echo "node version:"
echo `node -v`
# curl ifconfig.me
bundle exec rails packages:download_and_install["2.0.0-rc"]
bundle exec rails server -e test -p 5002 -d
./node_modules/.bin/cypress install
curl -i http://localhost:5002
yarn cypress:ga-ci
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt-get install -y ./google-chrome-stable_current_amd64.deb
#- name: Deploy to Heroku
# env:
# HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
# HEROKU_APP_NAME: "hermesapp"
# if: github.ref == 'refs/heads/main' && job.status == 'success'
# run: git push https://heroku:$HEROKU_API_TOKEN@git.heroku.com/$HEROKU_APP_NAME.git origin/main:main