diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 51ecf33..7397568 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -60,7 +60,17 @@ on: description: 'Node version' type: string required: true - + kit-version-source: + description: 'Rete Kit version source (npm or github)' + type: choice + options: + - npm + - github + default: 'npm' + kit-version: + description: 'Rete Kit version/reference' + type: string + default: 'latest' jobs: build-app: @@ -71,8 +81,21 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ inputs.node }} - - name: Install Rete Kit - run: npm i -g rete-kit + - name: Install Rete Kit from NPM + if: kit-version-source == 'npm' + run: npm i -g rete-kit@${{ inputs.kit-version }} + - uses: actions/checkout@v3 + if: kit-version-source == 'github' + with: + repository: retejs/rete-kit + token: ${{ secrets.RETE_QA_PUBLIC_PULL }} + ref: ${{ inputs.kit-version }} + - name: Install Rete Kit from GitHub + if: kit-version-source == 'github' + run: | + npm ci + npm run build + npm i -g . - name: Rete Kit version run: rete-kit -V - name: Bootstrapp application