Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/cli-minikit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
pull_request:
branches:
- main
- alpha
paths:
- 'packages/create-onchain/**'
push:
Expand All @@ -12,46 +13,48 @@

jobs:
test:
if: github.head_ref != 'alpha'
Comment thread
Dargon789 marked this conversation as resolved.
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 'Setup'
uses: ./.github/actions/setup

- name: Setup Bun
uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7 # v1.2.2
with:
bun-version: latest

- name: Install dependencies
run: pnpm f:create install

- name: Build CLI
run: pnpm f:create build

- name: Make CLI executable
run: chmod +x ./packages/create-onchain/dist/esm/cli.js

- name: Create test project
run: |
mkdir test-project
cd test-project

(sleep 1; echo ""; sleep 1; echo ""; sleep 1; echo -e "\033[D\n"; sleep 1; echo -e "\033[D\n") | ../packages/create-onchain/dist/esm/cli.js --mini

- name: Install & Build test project
working-directory: ./test-project/my-minikit-app
working-directory: ./test-project/my-onchainkit-app
run: |
npm install
npm run build

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Loading