Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/408 emberjs tests GitHub actions #416

Merged
merged 16 commits into from
Mar 2, 2021
14 changes: 14 additions & 0 deletions .github/workflows/rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: actions/setup-node@v2
with:
node-version: '8' # TODO version should not be specified

- name: Install Ember-Cli with NPM
run: npm install -g [email protected] # TODO version should not be specified
working-directory: frontend

- name: Install dependencies Yarn
run: yarn install --frozen-lockfile
working-directory: frontend

- name: Setup test database
env:
Expand All @@ -45,3 +56,6 @@ jobs:

- name: Run RuboCop
run: bundle exec rubocop --parallel

- name: Run Frontend Tests
run: bundle exec rake spec:frontend
2 changes: 0 additions & 2 deletions bin/frontend-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ esac

rails server -e test -d -p $RAILS_PORT -P $PID_FILE
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi

cd frontend
if [[ $SERVER == true ]]; then
ember test --server
Expand All @@ -22,7 +21,6 @@ else
fi
rc=$?
cd ..

kill -INT $(cat $PID_FILE)

exit $rc