Skip to content

Commit

Permalink
move test to devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Aug 22, 2024
1 parent 57bc1c8 commit 2db0de8
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up DevContainer
- name: Run brakeman
uses: devcontainers/[email protected]
with:
runCmd: bin/brakeman --no-pager
Expand Down Expand Up @@ -43,23 +43,13 @@ jobs:
# - 6379:6379
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable curl libjemalloc2 libsqlite3-0 libvips

- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true

- name: Run tests
env:
RAILS_ENV: test
# REDIS_URL: redis://localhost:6379/0
run: bin/rails test
uses: devcontainers/[email protected]
with:
runCmd: bin/rails test

- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 2db0de8

Please sign in to comment.