Files
swift-hvac-toolbox/.github/workflows/ci.yaml
Michael Housh bdbe89e101
Some checks are pending
CI / macOS (debug, 16.2) (push) Waiting to run
CI / macOS (release, 16.2) (push) Waiting to run
CI / ubuntu (push) Successful in 10m16s
feat: Adds ubuntu tests to ci
2025-03-07 12:01:18 -05:00

33 lines
780 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
macOS:
name: macOS
runs-on: macOS-latest
strategy:
matrix:
xcode: ['16.2']
config: ['debug', 'release']
steps:
- uses: actions/checkout@v4
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run ${{ matrix.xcode }} Tests for ${{ matrix.config }}
run: swift test
ubuntu:
name: ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build docker test image.
run: docker build -t 'hvac-toolbox:test' -f Dockerfile.dev .
- name: Run tests
run: docker run -i 'hvac-toolbox:test' swift test