Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
84 changes: 79 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
os:
- ubuntu-latest
- ubuntu-22.04
- ubuntu-22.04-arm
name: Native installer / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -30,15 +31,15 @@ jobs:
uses: ./
with:
use-installer: true
version: "1.71.0"
- run: sam --version | grep -F 1.71.0
version: "1.104.0"
- run: sam --version | grep -F 1.104.0

- name: Test official installer (pinned version; should use cache)
uses: ./
with:
use-installer: true
version: "1.71.0"
- run: sam --version | grep -F 1.71.0
version: "1.104.0"
- run: sam --version | grep -F 1.104.0

- name: Test official installer (latest version)
uses: ./
Expand All @@ -60,7 +61,8 @@ jobs:
- ubuntu-22.04
- windows-2019
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
name: PyPI / ${{ matrix.os }} / ${{ matrix.python }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -120,3 +122,75 @@ jobs:
- if: startsWith(matrix.os, 'ubuntu')
run: sam build --use-container
working-directory: ./sam-app

integ-new-python:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
- ubuntu-22.04
- windows-2019
python:
- "3.12"
- "3.13"
name: PyPI / ${{ matrix.os }} / ${{ matrix.python }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Test official installer (pinned version)
if: startsWith(matrix.os, 'ubuntu')
uses: ./
with:
use-installer: true
version: "1.130.0"
- if: startsWith(matrix.os, 'ubuntu')
run: sam --version | grep -F 1.130.0

- name: Test official installer (latest version)
if: startsWith(matrix.os, 'ubuntu')
uses: ./
with:
use-installer: true
- if: startsWith(matrix.os, 'ubuntu')
run: |
version=$(curl https://pypi.org/pypi/aws-sam-cli/json | jq -r .info.version)
sam --version | grep -F "$version"
shell: bash

# Test setup specific version
- uses: ./
with:
version: "1.128.0"
- run: sam --version | grep -F 1.128.0

# Test setup latest version
- uses: ./
- run: |
version=$(curl https://pypi.org/pypi/aws-sam-cli/json | jq -r .info.version)
sam --version | grep -F "$version"
shell: bash

# Test sam init
- run: sam init --name sam-app --runtime nodejs20.x --dependency-manager npm --app-template hello-world

# Test sam build
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: sam build
working-directory: ./sam-app

# Test sam build --use-container
# Doesn't work as-is on macOS or Windows due to licensing:
# - https://github.com/actions/virtual-environments/issues/17
# - https://github.com/actions/virtual-environments/issues/1143
- if: startsWith(matrix.os, 'ubuntu')
run: sam build --use-container
working-directory: ./sam-app
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ The AWS SAM CLI version to install. Installs the latest version by default.
>
> This is the recommended approach on supported platforms. It does not require Python to be installed, and is faster than the default installation method.
>
> Currently supports Linux x86-64 runners.

Set to `true` to set up AWS SAM CLI using a native installer. Defaults to `false`.
> Currently supports Linux x86-64 and aarch64 (ARM) runners. For ARM architecture, only versions 1.104.0 and above are supported.
> Set to `true` to set up AWS SAM CLI using a native installer. Defaults to `false`.

### `python`

Expand Down
Loading