Skip to content

chore: Add CI

chore: Add CI #4

Workflow file for this run

name: Tests
on:
push:
paths-ignore:
- '.github/**.md'
- 'README.md'
branches:
- main
pull_request:
paths-ignore:
- '.github/**.md'
- 'README.md'
types: [opened, synchronize, reopened, ready_for_review]
jobs:
test:
runs-on: macos-14
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: "5.10.0"
- name: Get swift version
run: swift --version # Swift 5.10.0
- name: Get swift version in macOS
if: runner.os == 'macOS'
run: xcrun --toolchain ${{ env.TOOLCHAINS }} swift --version # Swift 5.1.0
- name: Checkout
uses: actions/checkout@v4
- name: Cache SPM
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Test
run: .scripts/ci-test.sh