Skip to content

Commit

Permalink
Merge pull request #36 from FusionAuth/jj/test-workflow
Browse files Browse the repository at this point in the history
update branch names
  • Loading branch information
johnjeffers authored Jun 10, 2024
2 parents 79f1743 + 2ea87f0 commit 51d1084
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 28 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Release to Savant or publish to Maven.
# Only runs via manual workflow dispatch.

# Run locally with act:
#
# act pull_request [--input command=[command]] \
# --platform fusionauth-builder=[ecr-repo-name]/fusionauth-builder:latest] \
# --workflows ./.github/workflows/release.yaml \
# --workflows ./.github/workflows/deploy.yaml \
# --env-file <(aws configure export-credentials --profile [aws-profile] --format env)

name: Deploy
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: Generate docs
uses: phpDocumentor/phpDocumentor@master

- uses: EndBug/add-and-commit@v9
with:
add: 'docs'
message: ':memo: Updating docs'
21 changes: 0 additions & 21 deletions .github/workflows/docs.yml

This file was deleted.

17 changes: 11 additions & 6 deletions .github/workflows/test.yml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Test Library
name: Test

on:
push:
branches: [ "master" ]
branches:
- main
pull_request:
branches: [ "master" ]
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -20,11 +23,13 @@ jobs:
run: docker compose up -d

- name: Validate composer.json and composer.lock
run: composer validate
run: |
composer update
composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand Down

0 comments on commit 51d1084

Please sign in to comment.