diff --git a/.github/workflows/next-rails.yml b/.github/workflows/next-rails.yml index 572bbb61..d6a7c17e 100644 --- a/.github/workflows/next-rails.yml +++ b/.github/workflows/next-rails.yml @@ -10,22 +10,12 @@ jobs: if: contains(github.head_ref, 'next-rails') runs-on: ubuntu-latest name: next-spec - env: - RAILS_ENV: test steps: - - uses: actions/checkout@v2 - - name: Sets env vars for next-rails - run: | - echo "BUNDLE_GEMFILE=Gemfile.next" >> $GITHUB_ENV - echo "BUNDLE_CACHE_PATH=vendor/cache.next" >> $GITHUB_ENV - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true + - uses: actions/checkout@v4 - name: Prepare spec run: | - sudo systemctl start mysql.service wget -nv http://sphinxsearch.com/files/dicts/en.pak - bundle exec rake dev:bootstrap --trace - bundle exec bin/rake webdrivers:chromedriver:update + sudo chown -R 1000:1000 . + docker compose run --rm -e BUNDLE_GEMFILE=Gemfile.next -e BUNDLE_CACHE_PATH=vendor/cache.next hackweek bundle exec rake dev:bootstrap --trace - name: Run tests - run: bundle exec rspec --color --format documentation + run: docker compose run --rm -e BUNDLE_GEMFILE=Gemfile.next -e BUNDLE_CACHE_PATH=vendor/cache.next hackweek bundle exec rspec --color --format documentation diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index 8462143f..c74d037a 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -11,18 +11,12 @@ jobs: spec: runs-on: ubuntu-latest name: spec - env: - RAILS_ENV: test steps: - - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true + - uses: actions/checkout@v4 - name: Prepare spec run: | - sudo systemctl start mysql.service wget -nv http://sphinxsearch.com/files/dicts/en.pak - bundle exec rake dev:bootstrap --trace - bundle exec bin/rake webdrivers:chromedriver:update + sudo chown -R 1000:1000 . + docker compose run --rm hackweek bundle exec rake dev:bootstrap --trace - name: Run tests - run: bundle exec rspec --color --format documentation + run: docker compose run --rm hackweek bundle exec rspec --color --format documentation diff --git a/docker-compose.yml b/docker-compose.yml index 7cca3746..21eb172e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,7 @@ services: - .:/hackweek:z ports: - "3000:3000" + shm_size: '256m' environment: - CONTAINER=1 depends_on: