Skip to content

Commit

Permalink
Merge pull request #416 from puzzle/feature/408_emberjs_tests_github_…
Browse files Browse the repository at this point in the history
…actions

Feature/408 emberjs tests GitHub actions
  • Loading branch information
rbotteon committed Mar 2, 2021
2 parents d3f7280 + 0dcbea9 commit 1b8550b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
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

0 comments on commit 1b8550b

Please sign in to comment.