Skip to content

Add test gh action

Add test gh action #16

Workflow file for this run

# This is a starting workflow for building with GitHub Actions
name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Check out code
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
# Set up the build environment
- name: Copy our kickstart file over so it gets picked up
run: mkdir faDockerComposeFilePath/ && cp -r .github/kickstart faDockerComposeFilePath/ && cp .github/kickstart/kickstart.json faDockerComposeFilePath/kickstart/k2.json && cp .github/kickstart/kickstart.json .github/kickstart/k2.json
- name: Start FusionAuth
uses: fusionauth/fusionauth-github-action@v1
with:
FUSIONAUTH_APP_KICKSTART_FILENAME: k2.json
FUSIONAUTH_APP_KICKSTART_DIRECTORY_PATH: .github/kickstart
- name: Sleeping until FusionAuth starts
run: sleep 30
- name: Debugging network info
run: docker network ls
# Compile
- name: Test that we can compile
run: cd pkg/fusionauth && go build
# Compile
- name: Run tests
run: cd pkg/fusionauth && go test
# Done!