-
Notifications
You must be signed in to change notification settings - Fork 12
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 #27 from FusionAuth/jj/test-workflow
fix branch names, clean up test workflow
- Loading branch information
Showing
3 changed files
with
21 additions
and
46 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
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,45 +1,43 @@ | ||
name: run_tests | ||
# Run locally with act: | ||
# | ||
# act pull_request \ | ||
# --platform fusionauth-builder=[ecr-repo-name]/fusionauth-builder:latest] \ | ||
# --workflows ./.github/workflows/test.yaml | ||
|
||
name: Test | ||
|
||
# Controls when the action will run. | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
branches: | ||
- main | ||
pull_request: | ||
branches: [ "master" ] | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "run_tests" | ||
run_tests: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
runs-on: fusionauth-builder | ||
env: | ||
FUSIONAUTH_URL: http://localhost:9011 | ||
FUSIONAUTH_API_KEY: bf69486b-4733-4470-a592-f1bfce7af580 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Setup the system with the repository code, Java, and Ruby | ||
- uses: actions/checkout@v4 | ||
- uses: isbang/[email protected] | ||
with: | ||
compose-file: './src/test/docker/docker-compose.yml' | ||
down-flags: '--volumes' | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12.2' | ||
|
||
- name: Set up FusionAuth | ||
working-directory: src/test/docker | ||
run: docker compose up -d | ||
|
||
- name: Install fusionauth library | ||
shell: bash -l {0} | ||
run: pip3 install . | ||
shell: bash | ||
|
||
- name: Check to see if FusionAuth is loaded | ||
run: | | ||
bash ./src/test/docker/poll-for-kickstart-finish.sh | ||
shell: bash | ||
# Run the tests | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: | | ||
python3 src/test/python/fusionauth/rest_client_test.py | ||
python3 src/test/python/fusionauth/fusionauth_client_test.py | ||
shell: bash |
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,5 +1,3 @@ | ||
version: '3' | ||
|
||
services: | ||
db: | ||
image: postgres:16.0-alpine | ||
|