Skip to content

feat(domain): add cost-effectiveness claims (ausec-based) #39

feat(domain): add cost-effectiveness claims (ausec-based)

feat(domain): add cost-effectiveness claims (ausec-based) #39

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
release:
description: 'Trigger release after validation'
type: boolean
default: false
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Cache dataset downloads
uses: actions/cache@v4
with:
path: /tmp/graphbox-cache
key: dataset-cache-${{ hashFiles('src/experiments/evaluation/fixtures/**/*.ts') }}
restore-keys: |
dataset-cache-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
env:
CI: true
- name: Upload coverage reports
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: |
coverage/
!coverage/.cache
retention-days: 30
- name: Build
run: pnpm build
- name: Verify build
run: |
test -d dist
test -f dist/index.js
release:
name: Release
needs: validate
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
attestations: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: pnpm exec semantic-release