Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions .github/workflows/next-rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 4 additions & 10 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- .:/hackweek:z
ports:
- "3000:3000"
shm_size: '256m'
environment:
- CONTAINER=1
depends_on:
Expand Down
Loading