serverless/.github/workflows/ci-framework.yml
dependabot[bot] f83183b58f
chore(deps): bump the uv group across 3 directories with 2 updates (#13277)
* chore(deps): bump the uv group across 3 directories with 2 updates

Bumps the uv group with 1 update in the /packages/sf-core/tests/python/tests/uv_local_package directory: [werkzeug](https://github.com/pallets/werkzeug).
Bumps the uv group with 2 updates in the /packages/sf-core/tests/python/tests/uv_installer directory: [werkzeug](https://github.com/pallets/werkzeug) and [urllib3](https://github.com/urllib3/urllib3).
Bumps the uv group with 2 updates in the /packages/sf-core/tests/python/tests/uv directory: [werkzeug](https://github.com/pallets/werkzeug) and [urllib3](https://github.com/urllib3/urllib3).


Updates `werkzeug` from 3.1.4 to 3.1.5
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.1.4...3.1.5)

Updates `werkzeug` from 3.1.3 to 3.1.5
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.1.4...3.1.5)

Updates `urllib3` from 2.5.0 to 2.6.3
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.5.0...2.6.3)

Updates `werkzeug` from 3.1.3 to 3.1.5
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.1.4...3.1.5)

Updates `urllib3` from 2.5.0 to 2.6.3
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.5.0...2.6.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-version: 3.1.5
  dependency-type: indirect
  dependency-group: uv
- dependency-name: werkzeug
  dependency-version: 3.1.5
  dependency-type: indirect
  dependency-group: uv
- dependency-name: urllib3
  dependency-version: 2.6.3
  dependency-type: indirect
  dependency-group: uv
- dependency-name: werkzeug
  dependency-version: 3.1.5
  dependency-type: indirect
  dependency-group: uv
- dependency-name: urllib3
  dependency-version: 2.6.3
  dependency-type: indirect
  dependency-group: uv
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(ci): set `AWS_MAX_ATTEMPTS` to 5

* chore(ci): fix `TEST_STAGE` variable to use `github.actor` instead of `github.event.actor`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tomasz Czubocha <tomasz.czubocha@gmail.com>
2026-01-19 20:42:08 +00:00

113 lines
3.6 KiB
YAML

name: 'CI: Framework CLI'
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'
jobs:
lint:
name: 'Lint'
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- name: 'Checkout Code'
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 'Setup: Node.js'
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 24.x
cache: npm
- name: 'Install: Dependencies'
run: npm ci
- name: 'Lint: ESLint'
run: npm run lint
- name: 'Lint: Prettier'
run: npm run prettier
test-engine:
name: 'Test: Engine'
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/engine
steps:
- name: 'Checkout Code'
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 'Setup: Node.js'
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 24.x
cache: npm
- name: 'Install: Dependencies'
run: |
cd ../../
npm ci
- name: 'Test: Engine Unit'
run: npm test
test-framework:
name: 'Test: Framework'
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/sf-core
steps:
- name: 'Checkout Code'
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 'Setup: Node.js'
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 24.x
cache: npm
registry-url: 'https://npm.pkg.github.com'
scope: '@serverlessinc'
- name: 'Setup: AWS Credentials'
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
role-to-assume: arn:aws:iam::762003938904:role/GithubActionsDeploymentRole
aws-region: us-east-1
- name: 'Install: Dependencies'
run: |
cd ../../
npm ci
- name: 'Test: Unit (sf-core)'
run: npm run test:unit
- name: 'Test: Unit (serverless)'
working-directory: ./packages/serverless
run: npm run test:unit
- name: 'Build: Minify Shim'
run: |
cd ../serverless/lib/plugins/aws/dev
../../../../../../node_modules/.bin/esbuild ./shim.js --bundle --platform=node --minify --outfile=./shim.min.js
- name: 'Build: Framework'
run: npm run build
- name: 'Install: Serverless v3'
run: npm install -g serverless@3
- name: 'Test: Integration'
run: npm run test -- --maxWorkers=8
env:
SERVERLESS_LICENSE_KEY_DEV: ${{ secrets.SERVERLESS_LICENSE_KEY_DEV }}
SERVERLESS_ACCESS_KEY_DEV: ${{ secrets.SERVERLESS_ACCESS_KEY_DEV }}
TEST_STAGE: pr-${{ github.event.pull_request.user.login }}
SLS_AWS_SDK: 3
AWS_MAX_ATTEMPTS: 5
- name: 'Test: Resolvers'
run: npm run test:resolvers -- --maxWorkers=8
env:
SERVERLESS_LICENSE_KEY_DEV: ${{ secrets.SERVERLESS_LICENSE_KEY_DEV }}
SERVERLESS_ACCESS_KEY_DEV: ${{ secrets.SERVERLESS_ACCESS_KEY_DEV }}
TEST_STAGE: pr-${{ github.event.pull_request.user.login }}
AWS_MAX_ATTEMPTS: 5