From 2db0de81a12e172d05b29becba692a389ca224ef Mon Sep 17 00:00:00 2001 From: Geoff Wilson Date: Thu, 22 Aug 2024 16:43:09 -0400 Subject: [PATCH] move test to devcontainer --- .github/workflows/ci.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4480c7..fcf3b18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up DevContainer + - name: Run brakeman uses: devcontainers/ci@v0.3 with: runCmd: bin/brakeman --no-pager @@ -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/ci@v0.3 + with: + runCmd: bin/rails test - name: Keep screenshots from failed system tests uses: actions/upload-artifact@v4