This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-type: patch
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: test release | ||
# https://github.com/product-os/flowzone/tree/master/.github/actions | ||
inputs: | ||
json: | ||
description: "JSON stringified object containing all the inputs from the calling workflow" | ||
required: true | ||
secrets: | ||
description: "JSON stringified object containing all the secrets from the calling workflow" | ||
required: true | ||
variables: | ||
description: "JSON stringified object containing all the variables from the calling workflow" | ||
required: true | ||
|
||
# --- custom environment | ||
NODE_VERSION: | ||
type: string | ||
default: '20.x' | ||
VERBOSE: | ||
type: string | ||
default: "true" | ||
|
||
runs: | ||
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action | ||
using: "composite" | ||
steps: | ||
# https://github.com/actions/setup-node#caching-global-packages-data | ||
- name: Setup Node.js | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | ||
with: | ||
node-version: ${{ inputs.NODE_VERSION }} | ||
cache: npm | ||
|
||
- name: Test release | ||
shell: bash | ||
run: | | ||
set -ea | ||
[[ '${{ inputs.VERBOSE }}' =~ on|On|Yes|yes|true|True ]] && set -x | ||
npm i | ||
npm run build | ||
npm run test |
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