Add library dispenso #379
Workflow file for this run
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Node.js | |
| # Pin Node for the events-lambda lint/build/test steps; matches the | |
| # nodejs22.x lambda runtime and the package.json engines requirement. | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: | | |
| pyproject.toml | |
| lambda/pyproject.toml | |
| - name: Install dependencies | |
| run: make ce | |
| - name: Validate YAML configurations | |
| run: bin/ce_install --yaml-dir bin/yaml validate | |
| - name: Setup ozy for unified terraform versions etc | |
| run: | | |
| curl -sL https://raw.githubusercontent.com/aquanauts/ozy/main/conf/install.sh | bash | |
| echo "$HOME/.ozy/bin" >> $GITHUB_PATH | |
| - name: Check static | |
| run: make static-checks | |
| - name: tests | |
| run: make test | |
| - name: Build lambda packages | |
| # Build (not deploy) both lambda zips so dependency-resolution or | |
| # packaging breakage is caught on the PR rather than at deploy time. | |
| run: make lambda-package events-lambda-package | |
| - name: Test events-lambda | |
| working-directory: events-lambda | |
| run: npm ci && npm test |