Skip to content

GitHub Actions for Swift

Actions
Additional Swift supports on GitHub Actions
v1.0.1
Latest
Star (2)

GitHub Action for Swift

This action executes Swift and generates github action annotations from swift warnings/errors.

Usage

An example to executing Swift follows:

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'

GitHub Actions for Swift is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Additional Swift supports on GitHub Actions
v1.0.1
Latest

GitHub Actions for Swift is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.