Test build for angular v13 (Node.js 14, windows-latest) #6
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: Test build | |
run-name: Test build for ${{ inputs.stack }} v${{ inputs.version }} (Node.js ${{ inputs.node }}, ${{ inputs.os }}) | |
on: | |
workflow_call: | |
inputs: | |
os: | |
description: 'OS' | |
required: true | |
type: string | |
stack: | |
description: 'Stack' | |
required: true | |
type: string | |
version: | |
description: 'Stack version' | |
type: number | |
required: true | |
features: | |
description: 'Features (comma separated)' | |
required: true | |
type: string | |
node: | |
description: 'Node version' | |
type: string | |
required: true | |
workflow_dispatch: | |
inputs: | |
os: | |
description: 'OS' | |
required: true | |
type: choice | |
options: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
stack: | |
description: 'Stack' | |
required: true | |
type: choice | |
options: | |
- angular | |
- react | |
- react-vite | |
- vue | |
- vue-vite | |
- vite | |
- next | |
- nuxt | |
version: | |
description: 'Stack version' | |
type: number | |
required: true | |
features: | |
description: 'Features (comma separated)' | |
required: true | |
type: string | |
node: | |
description: 'Node version' | |
type: string | |
required: true | |
jobs: | |
build-app: | |
runs-on: ${{ inputs.os }} | |
steps: | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ inputs.node }} | |
- name: Install Rete Kit | |
run: npm i -g rete-kit | |
- name: Rete Kit version | |
run: rete-kit -V | |
- name: Bootstrapp application | |
run: rete-kit app -n app -s ${{ inputs.stack }} -v ${{ inputs.version }} -f "${{ inputs.features }}" | |
- name: Force install dependencies | |
run: npm install | |
working-directory: ./app | |
- name: Build application | |
run: npm run build | |
env: | |
CI: "" | |
working-directory: ./app | |