Skip to content

Setup Swift more Swiftly 🚀 (setup-swift 3.0) #1547

Setup Swift more Swiftly 🚀 (setup-swift 3.0)

Setup Swift more Swiftly 🚀 (setup-swift 3.0) #1547

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn
- run: npm run format-check
- run: npm test
integration-test:
name: Integrate Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
[
ubuntu-latest,
ubuntu-24.04-arm,
macos-latest,
windows-latest,
windows-11-arm,
]
swift: ["6.1"]
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: npm install
- run: npm run build && npm run pack-source-map
- name: Add msbuild to PATH
if: ${{ matrix.os == 'windows-latest' || matrix.os == 'windows-11-arm' }}
uses: microsoft/setup-msbuild@v2
- uses: ./
with:
swift-version: ${{ matrix.swift }}
- name: Swift version
run: swift --version | grep ${{ matrix.swift }} || exit 1