mirror of
https://github.com/Sea-Haven-Industries/procurement-ingest.git
synced 2026-09-30 18:53:14 +00:00
30 lines
911 B
YAML
30 lines
911 B
YAML
name: CI
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
merge_group:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
ci:
|
|
uses: Sea-Haven-Industries/.github/.github/workflows/ci-python-sam.yaml@af0f002e14a08cdbfd879c1183bfe7eb2604bce9 # v1.0.8
|
|
with:
|
|
source-dirs: "lambdas tests scripts"
|
|
run-tests: true
|
|
# Deploy path is HCP Terraform; reusable name still covers Python lint/tests.
|
|
run-cdk-synth: false
|
|
run-sam-validate: false
|
|
# The published OpenAPI contract must stay compliant with redocly.yaml;
|
|
# this is the CI mirror of the local `npm run lint:api`.
|
|
spec-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
- run: npm ci
|
|
- run: npm run lint:api
|