Refactor setup-gradle tasks (#98) #27
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 | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- .github/workflows/swift.yml | |
- swift/** | |
pull_request: | |
branches: [ main ] | |
paths: | |
- .github/workflows/swift.yml | |
- swift/** | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: macos-13 | |
defaults: | |
run: | |
working-directory: swift | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# We can use swift-actions/setup-swift@v1 but this is faster | |
- name: Configure Swift | |
run: | | |
sudo xcode-select -s /Applications/Xcode_15.0.app | |
swift --version | |
- name: Test | |
run: swift test | |
- name: Build | |
run: swift build |