Skip to content

Ignore package manager lockfiles during analysis #12

Ignore package manager lockfiles during analysis

Ignore package manager lockfiles during analysis #12

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.os }} / Node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
node:
- 18
- 20
- 22
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.34.2
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Test CLI
run: pnpm test:cli
- name: Build CLI
run: pnpm build:cli
- name: Smoke test CLI
run: node packages/cli/dist/index.js --version
- name: Build web
run: pnpm build:web
package:
name: Package smoke test
needs: test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.34.2
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Pack CLI
run: pnpm --filter devmap pack --pack-destination artifacts
- name: Smoke test packed CLI
run: |
npm exec --yes --package ./artifacts/devmap-0.1.0.tgz -- devmap --version
npm exec --yes --package ./artifacts/devmap-0.1.0.tgz -- devmap --help