Skip to content

Commit

Permalink
Implement action to validate the mode with a store
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj committed Jan 9, 2024
1 parent b8fe71a commit f77de6d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Test Action

on:
workflow_dispatch:

jobs:
test:
name: Run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./test
with:
store-file-path: ./example/model.fga.yaml
19 changes: 19 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'OpenFGA Test Action'
description: 'Run and verify your models'

inputs:
store-file-path:
description: The path to the store file
required: true

runs:
using: composite
steps:
- name: Install OpenFGA CLI
uses: jaxxstorm/[email protected]
with:
repo: openfga/cli
cache: enable
- name: Run OpenFGA CLI
shell: bash
run: fga model test --tests ${{ inputs.store-file-path }}

0 comments on commit f77de6d

Please sign in to comment.