-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.25 KB
/
swift-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
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: Checkout
uses: actions/checkout@v4
- name: Setup
run: |
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && apt-get -q install -y make curl wget
- name: Test
run: |
make test
- name: Coverage
run: |
make coverage
- name: Upload Code Coverage
uses: codecov/codecov-action@v3
with:
files: ${{ github.workspace }}/lcov.info