Skip to content

Update latestRTTuistSimplifierPluginVersion to 2.2.2 #33

Update latestRTTuistSimplifierPluginVersion to 2.2.2

Update latestRTTuistSimplifierPluginVersion to 2.2.2 #33

Workflow file for this run

name: Tuist
on:
push:
branches:
- main
pull_request:
paths:
- Tuist/**
- Package.resolved
- Gemfile*
- Package.swift
- Project.swift
- Sources/**
- '!Sources/**/*.docc'
- Templates/**
- Tests/**
- features/**
- fixtures/**
- .package.resolved
- .github/workflows/tuist.yml
concurrency:
group: tuist-${{ github.head_ref }}
cancel-in-progress: true
env:
RUBY_VERSION: '3.0.3'
TUIST_STATS_OPT_OUT: true
NODE_VERSION: 16.17.0
TUIST_CONFIG_CLOUD_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}
jobs:
release_build:
name: Release build with Xcode
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
name: 'Cache Tuist .build folder'
with:
path: .build
key: ${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-v1-${{ hashFiles('Package.resolved') }}-git-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-v1-${{ hashFiles('Package.resolved') }}
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-v1
- name: Select Xcode for Tuist and Tuistenv
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- name: Build Tuist for release
run: swift build -c release --product tuist
- name: Build Tuistenv for release
run: swift build -c release --product tuistenv
- name: Build ProjectDescription for release
run: swift build -c release --product ProjectDescription
test:
name: Test with Xcode
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- uses: asdf-vm/actions/install@v2
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- uses: actions/cache@v3
name: 'Cache fetched dependencies folder'
with:
path: Tuist/Dependencies/SwiftPackageManager/.build
key: spm-v1-${{ hashFiles('Package.resolved') }}
restore-keys: spm-v1-${{ hashFiles('Package.resolved') }}
- name: Fetch dependencies
run: tuist fetch
- name: Test
run: tuist test --no-cache --skip-test-targets TuistBuildAcceptanceTests TuistGenerateOneAcceptanceTests TuistTestAcceptanceTests
cache-warm:
name: Cache warm with latest Tuist
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: asdf-vm/actions/install@v2
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- uses: actions/cache@v3
name: 'Cache fetched dependencies folder'
with:
path: Tuist/Dependencies/SwiftPackageManager/.build
key: spm-v1-${{ hashFiles('Package.resolved') }}
restore-keys: spm-v1-${{ hashFiles('Package.resolved') }}
- name: Fetch dependencies
run: tuist fetch
- name: Print hashes
run: tuist cache print-hashes
- name: Cache warm
run: tuist cache warm
cache-warm-silicon:
name: Cache warm with latest Tuist on Silicon
runs-on: macos-13-xlarge
steps:
- uses: actions/checkout@v3
- uses: asdf-vm/actions/install@v2
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- uses: actions/cache@v3
name: 'Cache fetched dependencies folder'
with:
path: Tuist/Dependencies/SwiftPackageManager/.build
key: spm-v1-${{ hashFiles('Package.resolved') }}
restore-keys: spm-v1-${{ hashFiles('Package.resolved') }}
- name: Fetch dependencies
run: tuist fetch
- name: Print hashes
run: tuist cache print-hashes
- name: Cache warm
run: tuist cache warm
acceptance_tests:
name: ${{ matrix.feature }} acceptance tests with Tuist
runs-on: macos-13
env:
TUIST_CONFIG_CLOUD_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}
strategy:
matrix:
feature:
[
'Build',
'GenerateOne',
'Test',
]
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v2
- name: Select Xcode
# Xcode accepts -skipMacroValidation
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- name: Skip Xcode Macro Fingerprint Validation
run: defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
- uses: actions/cache@v3
name: 'Cache fetched dependencies folder'
with:
path: Tuist/Dependencies/SwiftPackageManager/.build
key: spm-v1-${{ hashFiles('Tuist/Package.resolved') }}
restore-keys: spm-v1-${{ hashFiles('Tuist/Package.resolved') }}
- name: Fetch dependencies
run: tuist fetch
- name: Run acceptance tests
run: tuist test Tuist${{ matrix.feature }}AcceptanceTests
cucumber_acceptance_tests:
name: ${{ matrix.feature }} acceptance tests with Xcode
runs-on: macos-13
strategy:
matrix:
feature:
[
'dependencies',
'edit',
'generate-3',
'generate-4',
'generate-5',
'generate-6',
'generate-7',
'generate-8',
'graph',
'init',
'list-targets',
'plugins',
'precompiled',
'run',
'scaffold',
'tasks',
'plugin',
]
needs: release_build
steps:
- uses: actions/checkout@v3
- name: Initialize submodules
run: |
git submodule update --init fixtures/tuist_plugin
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- uses: actions/cache@v3
name: 'Cache Tuist .build folder'
with:
path: .build
key: ${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-v1-${{ hashFiles('Package.resolved') }}-git-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-v1-${{ hashFiles('Package.resolved') }}
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ env.RUBY_VERSION }}-gems-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.RUBY_VERSION }}-gems-
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run cucumber tests
run: FEATURE=features/${{ matrix.feature }}.feature make tuist/acceptance-test
lint:
name: Lint
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: asdf-vm/actions/install@v2
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- name: Run
run: make workspace/lint
lint-lockfiles:
name: Lint lockfiles
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Run
run: ./make/tasks/workspace/lint/lockfiles.sh