Run apitest for stg #25
This file contains 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
name: 'apitest : run' | |
run-name: Run apitest for ${{ inputs.env || 'stg' }} | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- "apitest/**" | |
push: | |
branches: ["main"] | |
paths: | |
- "apitest/**" | |
workflow_call: | |
inputs: | |
env: | |
required: true | |
default: stg | |
type: string | |
version: | |
type: string | |
workflow_dispatch: | |
inputs: | |
env: | |
description: Environment | |
required: true | |
default: stg | |
type: choice | |
options: | |
- stg | |
- prd | |
version: | |
description: Version | |
type: string | |
jobs: | |
run-apitest: | |
name: apitest-${{ inputs.env || 'stg' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.makefiles | |
apitest | |
Makefile | |
config.json | |
- uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
cache-dependency-path: apitest/package-lock.json | |
node-version-file: apitest/package.json | |
- run: make apitest-init | |
- run: make apitest-run ENV=${{ inputs.env || 'stg' }} VERSION=${{ inputs.version || '*' }} |