-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.07 KB
/
swift-pr.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
name: PR
on:
pull_request:
branches: [develop]
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Linux
os: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Get swift version
id: get_swift_version
run: |
v=$(cat .swift-version)
echo "swift_version=$v" >> $GITHUB_OUTPUT
- uses: slashmo/[email protected] # swift-actions/setup-swift@v2
with:
# swift-version: ${{ steps.get_swift_version.outputs.swift_version }}
version: ${{ steps.get_swift_version.outputs.swift_version }}
- name: Verify swift version
run: |
swift --version
- name: Build
run: |
swift build -v
- name: Run tests
run: |
swift test -v