-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problems with env variables and more
- Loading branch information
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
name: Run tests on push and pull request | ||
name: Run tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
setup: | ||
tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
CIRCLES_DOCKER: $HOME/CirclesUBI/circles-docker | ||
CIRCLES_CORE: $HOME/CirclesUBI/circles-core | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
|
||
steps: | ||
- name: Add hosts to /etc/hosts | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
#env: | ||
# ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
run: | | ||
sudo echo "api.circles.local" | sudo tee -a /etc/hosts | ||
sudo echo "graph.circles.local" | sudo tee -a /etc/hosts | ||
|
@@ -35,14 +40,11 @@ jobs: | |
- name: Try starting failed services | ||
run: make up | ||
|
||
#- name: Copy core configs | ||
# run: | | ||
# cd $TRAVIS_BUILD_DIR | ||
# cp .env.example .env | ||
- name: Copy core configs | ||
run: | | ||
cd $CIRCLES_CORE | ||
cp .env.example .env | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
|