Skip to content

[Infra] Add GHA workflow #1

[Infra] Add GHA workflow

[Infra] Add GHA workflow #1

Workflow file for this run

name: ci
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
spm:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build
- name: Test
run: swift test
cocoapods:
strategy:
matrix:
podspec: [PromisesObjC.podspec, PromisesSwift.podspec]
platform: [ios, tvos, macos, watchos]
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Lint
run: |
pod lib lint ${{ matrix.podspec }} --platforms=${{ matrix.platform }}