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

Add GitHub Actions workflow #116

Merged
merged 2 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased

- Add GitHub Actions workflow

## 6.1.0

- Updates max content length configuration for Akka Http 10.5,
Expand Down
10 changes: 10 additions & 0 deletions scripts/citest
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a comment here along the lines of:

# Wait for server to start up before testing

./scripts/test

# Uncomment following line to see server output in GitHub Actions
# cat gh_output.txt
Loading