-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1008 Bytes
/
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
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.7.3-amazonlinux2
container:
image: ${{ matrix.image }}
# 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@v3
- name: Setup
run: |
yum -y update && yum -y install git make curl
- 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