Skip to content

Update workflow

Update workflow #15

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
run-exercises-tests:
name: Swift ${{ matrix.swift }} on Ubuntu
runs-on: ubuntu-24.04
strategy:
matrix:
swift: ["6.0", "6.1", "6.2"]
container:
image: swift:${{ matrix.swift }}
env:
RUNALL: "true"
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Run tests
run: swift test
run-generator-unit-tests:
runs-on: ubuntu-24.04
container:
image: swift:6.2
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Run tests
run: swift test --package-path ./generator
run-generator-usage-tests:
runs-on: ubuntu-24.04
container:
image: swift:6.2
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run generator tests
run: ./bin/test_generator.sh
run-generator-usage-tests-macos:
name: Swift on macOS ${{ matrix.macOS }} with Xcode ${{ matrix.xcode }}
runs-on: macos-${{ matrix.macOS }}
strategy:
matrix:
include:
- macOS: '14'
xcode: '16.2'
- macOS: '15'
xcode: '16.4'
- macOS: '26'
xcode: '26.0'
env:
RUNALL: "true"
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Run generator tests
run: ./bin/test_generator.sh