Skip to content

Commit

Permalink
Install python2 from apt so that we can use ubuntu-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
tarebyte authored and eleanorreem committed Jun 26, 2023
1 parent 8c85455 commit 11d04a0
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ on:
jobs:
erb_javascript_rails:
runs-on: ubuntu-latest
container:
image: ruby:2.5.8-buster
name: "ERBLint, ESCheck, ESLint, and RSpec"
name: "ES Check, ERBLint, ESLint, and RSpec"
env:
RAILS_ENV: test
services:
Expand All @@ -29,40 +27,25 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Install required apt packages
run: apt-get install -yqq libpq-dev
# TODO: Migrate this to use ruby/setup-ruby when we're
# able to use a new version of Node.js.

# There is a python-2.7 dependency that can't be met without using the
# ruby-2.5.8-buster Docker image.
- name: Bundle install
run: bundle install -j $(nproc) --path vendor/bundle
run: sudo apt-get install -y python2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-node@v3
with:
node-version: 10.13.x
- name: Run yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Run yarn lint
uses: borales/actions-yarn@v4
with:
cmd: lint
- name: Run ERBLint
uses: borales/actions-yarn@v4
with:
cmd: lint-erb
cache: 'yarn'
- name: Precomple Rails assets
run: bundle exec rails assets:precompile
- name: Run yarn es-check
uses: borales/actions-yarn@v4
with:
cmd: es-check
- name: Run ES Check
run: yarn es-check
- name: Run ERBLint
run: yarn lint-erb
- name: Run ESLint
run: yarn lint
- name: Setup DB and run RSpec
env:
DATABASE_HOST: postgres
run: |-
bundle exec rails db:create
bundle exec rake db:schema:load --trace
Expand Down

0 comments on commit 11d04a0

Please sign in to comment.