SwiftTailwind/.github/workflows/ci.yml
laosb dca866c3a9 ci: Remove Swift package cache steps from CI workflow ...because we
don't have dependencies at this moment, so Package.resolved wasn't even
there.
2025-08-20 21:16:28 +08:00

47 lines
954 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-linux:
name: Test on Linux
runs-on: ubuntu-latest
strategy:
matrix:
swift-version: ["6.1"]
container:
image: swift:${{ matrix.swift-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build package
run: swift build --verbose
- name: Run tests
run: swift test --verbose
test-macos:
name: Test on macOS
runs-on: macos-latest
strategy:
matrix:
swift-version: ["6.1"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Swift ${{ matrix.swift-version }}
uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}
- name: Build package
run: swift build --verbose
- name: Run tests
run: swift test --verbose