update smoketest to use cli #579
Workflow file for this run
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
name: Smoke test | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
fetch-target: | |
name: Fetch Target From TUF Repo | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- os: ubuntu-latest | |
shell: bash | |
- os: windows-latest | |
shell: cmd | |
runs-on: ${{ matrix.platform.os }} | |
defaults: | |
run: | |
shell: ${{ matrix.platform.shell }} | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3 | |
- name: Setup node | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3 | |
with: | |
node-version: 18.17.0 | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Install | |
run: npm install -g ./packages/cli | |
- name: Download target from Sigstore TUF repo | |
env: | |
DEBUG: '*' | |
run: | | |
tuf download-target \ | |
--metadata-base-url https://sigstore-tuf-root.storage.googleapis.com \ | |
--unsafe-root-download \ | |
--target-name trusted_root.json | |
tuf download-target \ | |
--metadata-base-url https://sigstore-tuf-root.storage.googleapis.com \ | |
--unsafe-root-download \ | |
--target-name registry.npmjs.org/keys.json | |
- name: Download target from TUF Demo repo | |
run: | | |
tuf download-target \ | |
--metadata-base-url https://jku.github.io/tuf-demo/metadata \ | |
--target-base-url https://jku.github.io/tuf-demo/targets \ | |
--unsafe-root-download \ | |
--target-name rdimitrov/artifact-example.md |