-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eec419f
commit 840b5fb
Showing
8 changed files
with
416 additions
and
229 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
name: Build package | ||
description: Build the SDK package | ||
|
||
inputs: | ||
node: | ||
description: The Node version to use | ||
required: false | ||
default: 18 | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node }} | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci --include=dev | ||
|
||
- name: Build package | ||
shell: bash | ||
run: npm run build | ||
env: | ||
WITH_STATS: true | ||
|
||
- name: Get bundle size | ||
shell: bash | ||
run: npm run print-bundle-size | ||
|
||
- name: Run `es-check` | ||
shell: bash | ||
run: npm run test:es-check |
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,57 @@ | ||
name: Run framework test | ||
description: Run tests for a given framework | ||
|
||
inputs: | ||
node: | ||
description: The Node version to use | ||
required: false | ||
default: 18 | ||
cache: | ||
description: Cache key to restore for build artifacts. | ||
required: true | ||
install: | ||
description: The installation command to run | ||
required: true | ||
content: | ||
description: The SDK entrypoint code to inject. | ||
required: true | ||
import: | ||
description: The SDK's import code to inject. | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node }} | ||
cache: 'npm' | ||
|
||
- name: Restore build artifacts | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: . | ||
key: ${{ inputs.cache }} | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci | ||
|
||
- name: Create application | ||
shell: bash | ||
run: ${{ inputs.install }} | ||
|
||
- name: Install SDK | ||
shell: bash | ||
run: | | ||
npm link '../' | ||
${{ inputs.content }} | ||
${{ inputs.import }} | ||
working-directory: my-app | ||
|
||
- name: Build application | ||
shell: bash | ||
run: npm run build | ||
working-directory: my-app |
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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
Oops, something went wrong.