mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
2601d39792
* Bump XcodeProj and Spectre * Add LinuxMain.swift * Linux test fixups * Add CI job for ubuntu-latest * Use URLs in glob logic to avoid Linux/Mac foundation inconsistencies * fatalError when --enable-test-discovery is not used * Update fixtures They changed because of a bugfix in XcodeProj: https://github.com/tuist/XcodeProj/pull/563 * Update CHANGELOG.md
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: CI
|
|
on:
|
|
push: {}
|
|
pull_request: {}
|
|
jobs:
|
|
run:
|
|
runs-on: macOS-latest
|
|
name: Xcode ${{ matrix.xcode }}
|
|
strategy:
|
|
matrix:
|
|
xcode: ["12"]
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Set Xcode
|
|
run: |
|
|
echo "Available Xcode versions:"
|
|
ls /Applications | grep Xcode
|
|
echo "Choosing Xcode_${{ matrix.xcode }}.app"
|
|
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
|
xcodebuild -version
|
|
swift --version
|
|
swift package --version
|
|
- name: Resolve
|
|
run: swift package resolve
|
|
- name: Build
|
|
run: swift build
|
|
- name: Test
|
|
run: set -o pipefail && swift test 2>&1 | xcpretty
|
|
- name: Gen fixtures
|
|
run: scripts/gen-fixtures.sh
|
|
- name: Check fixtures
|
|
run: scripts/diff-fixtures.sh
|
|
- name: Build fixtures
|
|
run: scripts/build-fixtures.sh
|
|
run-linux:
|
|
runs-on: ubuntu-latest
|
|
name: Linux
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Build and run tests
|
|
run: swift test --enable-test-discovery
|