Skip to content

Support swift-aws-lambda-runtime 1.0.0-alpha.2 #9

Support swift-aws-lambda-runtime 1.0.0-alpha.2

Support swift-aws-lambda-runtime 1.0.0-alpha.2 #9

Workflow file for this run

name: 'Run Swift Tests'
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
env:
AWS_ENABLE_LOGGING : "true"
AWS_LOG_LEVEL: "trace"
jobs:
swift-tests:
name: 'Swift Tests'
runs-on: ubuntu-latest
strategy:
matrix:
image:
- swift:5.10.1-amazonlinux2
services:
localstack:
image: localstack/localstack
container:
image: ${{ matrix.image }}
env:
LOCALSTACK_ENDPOINT : "http://localstack:4566"
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
steps:
# Checkout the repository to the GitHub Actions runner
- name: Setup
run: |
yum -y update && yum -y install git make zip curl
- name: Git Clone & Checkout
run: |
git clone https://github.com/$GITHUB_REPOSITORY.git $GITHUB_WORKSPACE/src
echo https://github.com/$GITHUB_REPOSITORY.git $BRANCH_NAME
cd $GITHUB_WORKSPACE/src
git checkout $BRANCH_NAME
- name: Test
run: |
cd $GITHUB_WORKSPACE/src
make test
- name: Coverage
run: |
cd $GITHUB_WORKSPACE/src
make coverage
- name: Upload Code Coverage
uses: codecov/codecov-action@v3
with:
files: ${{ github.workspace }}/lcov.info