-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from WikiWatershed/jnh/travis-to-github-actions
Add GitHub Actions workflow
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- hotfix/** | ||
- release/** | ||
- test/** | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
compile-then-run-tests: | ||
name: Compile scala, run server, run tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
|
||
- name: Install and configure pipenv | ||
run: | | ||
PYTHON_PATH=$(which python) | ||
pip install pipenv | ||
pipenv --python $PYTHON_PATH | ||
- name: Run setup script | ||
run: ./scripts/setup | ||
|
||
- name: Run test | ||
run: ./scripts/citest |
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
|
||
./scripts/server >gh_output.txt 2>&1 & | ||
# Wait for server to start up before testing | ||
sleep 15 | ||
./scripts/test | ||
|
||
# Uncomment following line to see server output in GitHub Actions | ||
# cat gh_output.txt |