Skip to content

Commit

Permalink
feat: GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk authored Nov 21, 2024
1 parent 8d6b18e commit a255910
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'OpenActive Test Suite'
description: 'Test suite for OpenActive implementations'
inputs:
args: # id of input
description: 'Arguments to pass to `npm start` of OpenActive Test Suite'
required: false
default: ''
config: # id of input
description: 'The path of a config file to copy into ./config/ of OpenActive Test Suite'
required: false
default: ''
NODE_CONFIG: # id of input
description: 'JSON configuration string to pass into OpenActive Test Suite'
required: true
default: '{ "ci": true }'
NODE_ENV: # id of input
description: 'Value of NODE_ENV environment variable to pass into OpenActive Test Suite'
required: false
default: ''
NODE_APP_INSTANCE: # id of input
description: 'Value of NODE_APP_INSTANCE environment variable to pass into OpenActive Test Suite'
required: false
default: ''
runs:
using: 'docker'
image: 'docker://ghcr.io/openactive/test-suite:latest'
args:
- ${{ inputs.args }}
env:
FORCE_COLOR: 1
NODE_CONFIG: ${{ inputs.NODE_CONFIG }}
NODE_ENV: ${{ inputs.NODE_ENV }}
NODE_APP_INSTANCE: ${{ inputs.NODE_APP_INSTANCE }}

0 comments on commit a255910

Please sign in to comment.