chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 (#84) #157
This file contains 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: | |
jobs: | |
unit: | |
name: npm test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- run: npm ci | |
- run: npm test | |
native-installer: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- ubuntu-22.04 | |
name: Native installer / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test official installer (pinned version) | |
uses: ./ | |
with: | |
use-installer: true | |
version: "1.71.0" | |
- run: sam --version | grep -F 1.71.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 | |
- name: Test official installer (latest version) | |
uses: ./ | |
with: | |
use-installer: true | |
- run: | | |
version=$(curl https://pypi.org/pypi/aws-sam-cli/json | jq -r .info.version) | |
sam --version | grep -F "$version" | |
shell: bash | |
integ: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
- ubuntu-22.04 | |
- windows-2019 | |
python: | |
- "3.8" | |
- "3.11" | |
name: PyPI / ${{ matrix.os }} / ${{ matrix.python }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Test official installer (pinned version) | |
if: startsWith(matrix.os, 'ubuntu') | |
uses: ./ | |
with: | |
use-installer: true | |
version: "1.71.0" | |
- if: startsWith(matrix.os, 'ubuntu') | |
run: sam --version | grep -F 1.71.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.18.2" | |
- run: sam --version | grep -F 1.18.2 | |
# 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 nodejs14.x --dependency-manager npm --app-template hello-world | |
# Test sam build | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "14" | |
- 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 |