17 - 1 - Custom Actions - Composite | env - dev #3
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: 17 - 1 - Custom Actions - Composite | |
run-name: 17 - 1 - Custom Actions - Composite | env - ${{ inputs.target-env }} | |
on: | |
workflow_dispatch: | |
inputs: | |
target-env: | |
description: Which environment to target for dependency installation | |
type: choice | |
options: | |
- dev | |
- prod | |
env: | |
working-directory: 17-custom-actions/react-app | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.working-directory }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node and NPM Dependencies | |
uses: ./.github/actions/composite-cache-deps | |
with: | |
node-version: 20.x | |
working-dir: ${{ env.working-directory }} | |
target-env: ${{ inputs.target-env }} | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build |