Skip to content

Commit

Permalink
Add apollo gmod js (#2613)
Browse files Browse the repository at this point in the history
* added react apollo

* fixed a small bug

* fixed file setup

* fixed path

* added config to register admin

* fixed admin

* fixes apollo config

* fixed python apollo
  • Loading branch information
nathandunn committed Apr 28, 2021
1 parent 15fee81 commit dd5afca
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 123 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-apollo.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
java-version: 1.8
- name: Run Apollo
run: |
cp test/config/python-apollo.travis apollo-config.groovy
cp test/config/python-apollo-config.groovy apollo-config.groovy
date
./grailsw run-app &
echo "Sleeping here while Apollo builds"
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/react-apollo.yml
@@ -0,0 +1,78 @@
name: React-Apollo

on: ["push", "pull_request"]

jobs:
test-react-apollo:
name: test-react-apollo

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8.7]
node-version: [12.x]
## node-version: [10.x, 12.x, 14.x]
steps:
- name: Checkout Apollo
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run Apollo
run: |
date
cp test/config/react-apollo-test.config.groovy apollo-config.groovy
./grailsw run-app &
echo "Sleeping here while Apollo builds"
sleep 240
echo "Done sleeping, I hope it is working"
curl -i 'http://localhost:8080/apollo/annotator/system'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Checkout apoll-gmod-js
uses: actions/checkout@v2
with:
repository: gmod/apollo-gmod-js
path: apollo-gmod-js
ref: master
- name: Install deps and clean environment
run: |
pwd
cd apollo-gmod-js
rm -rf `pwd`/temp-apollo-test-data
cp -r `pwd`/test-data `pwd`/temp-apollo-test-data
yarn install
- name: Test Server up
run: |
sleep 60
ps -ef | grep java
netstat -tan | grep LISTEN
curl http://localhost:8080/apollo/annotator/system || true
sleep 60
curl http://localhost:8080/annotator/system
curl -s 'http://localhost:8080/apollo/WebServices' > /dev/null
- name: Test
run: |
cd apollo-gmod-js
export APOLLO_URL="http://localhost:8080/apollo"
yarn test:nowatch
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
39 changes: 0 additions & 39 deletions test/config/mysql.travis

This file was deleted.

34 changes: 0 additions & 34 deletions test/config/postgres.travis

This file was deleted.

File renamed without changes.
11 changes: 11 additions & 0 deletions test/config/react-apollo-test.config.groovy
@@ -0,0 +1,11 @@


apollo{
admin{
username = "admin@local.host"
password = "password"
firstName = "Ad"
lastName = "min"
}
}

49 changes: 0 additions & 49 deletions test/config/run-travis.sh

This file was deleted.

0 comments on commit dd5afca

Please sign in to comment.