-
Notifications
You must be signed in to change notification settings - Fork 5
27 lines (22 loc) · 939 Bytes
/
swift.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
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on: [push]
jobs:
build:
runs-on: macos-latest-xlarge
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- uses: swift-actions/setup-swift@v1
- name: Get swift version
run: swift --version
- uses: actions/checkout@v3
- name: Fix Up Private GitHub URLs
# Add personal access token to all private repo URLs
run: find . -type f \( -name 'Package.swift' -o -name 'Package.resolved' \) -exec sed -i '' "s/https:\/\/github.com\/eu-digital-identity-wallet/https:\/\/${{ secrets.USER_NAME }}:${{ secrets.USER_GITHUB_TOKEN }}@github.com\/eu-digital-identity-wallet/g" {} \;
- name: Build
run: swift build
- name: Run tests
run: swift test