feat: initial move from microsoft/kiota #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Swift abstractions | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths: ['abstractions/**', '.github/workflows/**'] | |
pull_request: | |
paths: ['abstractions/**', '.github/workflows/**'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
relativePath: ./abstractions | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: '5.7' | |
- name: Build SDK project | |
run: swift build | |
working-directory: ${{ env.relativePath }} | |
- name: Run unit tests | |
run: swift test | |
working-directory: ${{ env.relativePath }} |