https://github.com/sinoru/actions-swift
GitHub Action for Swift with warning/error annotations.
https://github.com/sinoru/actions-swift
annotation github-actions swift
Last synced: 2 months ago
JSON representation
GitHub Action for Swift with warning/error annotations.
- Host: GitHub
- URL: https://github.com/sinoru/actions-swift
- Owner: sinoru
- License: apache-2.0
- Created: 2022-07-31T06:54:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-31T15:05:57.000Z (over 3 years ago)
- Last Synced: 2025-10-03T18:53:36.915Z (6 months ago)
- Topics: annotation, github-actions, swift
- Language: Swift
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action for Swift
This action executes [Swift](https://swift.org) and generates github action annotations from swift warnings/errors.
## Usage
An example to executing Swift follows:
```yaml
name: Swift
on:
push:
paths:
- '.github/workflows/swift.yml' # File path to this yaml
- '**/*.swift'
pull_request:
paths:
- '.github/workflows/swift.yml' # File path to this yaml
- '**/*.swift'
jobs:
swift-on-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: sinoru/actions-swift@v1
with:
swift-image-tag: 'latest'
args: 'build'
- uses: sinoru/actions-swift@v1
with:
swift-image-tag: 'latest'
args: 'test'
swift-without-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: sinoru/actions-swift@v1
with:
swift-version: '5.6.3'
args: 'build'
- uses: sinoru/actions-swift@v1
with:
args: 'test'
```