Revamped completely for new getting started docs #44
Workflow file for this run
This file contains hidden or 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 is a starting workflow for building with GitHub Actions | |
name: Build | |
on: | |
push: | |
branches: [ master, main ] | |
pull_request: | |
branches: [ master, main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out code | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
# Set up the build environment | |
- run: npm ci | |
# Build | |
- name: Checkout out the example kickstarts | |
uses: actions/checkout@v4 | |
with: | |
repository: FusionAuth/fusionauth-example-kickstart | |
path: fusionauth-example-kickstart | |
- name: Symlink to the Get Started kickstart | |
run: ln -s fusionauth-example-kickstart/get-started kickstart | |
- name: Start FusionAuth | |
uses: fusionauth/fusionauth-github-action@v1 | |
with: | |
FUSIONAUTH_VERSION: latest | |
FUSIONAUTH_APP_KICKSTART_DIRECTORY_PATH: kickstart | |
- name: Install npm dependencies | |
run: | | |
npm install | |
npx playwright install-deps | |
npx playwright install | |
working-directory: . | |
- name: Start app | |
run: npm run dev & # & in background | |
working-directory: . | |
- name: Run Playwright tests | |
run: npx playwright test --project=chromium | |
working-directory: . | |
# only for debugging playwright errors | |
# - uses: actions/upload-artifact@v4 | |
# if: always() | |
# with: | |
# name: playwright-screenshot | |
# path: app/screenshot.png | |
# retention-days: 2 | |
# Done! |