Skip to content

fix: use correct arch on macOs for cache key #126

fix: use correct arch on macOs for cache key

fix: use correct arch on macOs for cache key #126

Workflow file for this run

name: "Smoke Tests"
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
# Basic smoke test that doesn't require secrets
smoke-test:
name: Smoke Test (${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: "24"
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Build Action
run: npm run build
- name: Test Action Loading (No Auth)
uses: ./
with:
version: "latest"
continue-on-error: true
id: smoke-test
# The action should fail gracefully with a proper error message
- name: Verify Expected Failure
shell: bash
run: |
if [ "${{ steps.smoke-test.outcome }}" == "success" ]; then
echo "❌ Expected action to fail without authentication, but it succeeded"
exit 1
else
echo "✅ Action correctly failed without authentication as expected"
fi