Create latestRTTuistSimplifierPluginVersion file #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tuist | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- Tuist/** | |
- Package.resolved | |
- Gemfile* | |
- Package.swift | |
- Project.swift | |
- Sources/** | |
- Templates/** | |
- Tests/** | |
- projects/tuist/features/** | |
- projects/tuist/fixtures/** | |
- .package.resolved | |
- projects/fourier/** | |
- .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 | |
RAILS_ENV: development | |
RAILS_MASTER_KEY: ${{ secrets.CLOUD_RAILS_MASTER_KEY }} | |
NODE_VERSION: 16.17.0 | |
jobs: | |
unit_tests: | |
name: Unit tests 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: actions/cache@v3 | |
name: 'Cache Tuist .build folder' | |
with: | |
path: .build | |
key: ${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-${{ hashFiles('Package.resolved') }}-git-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-${{ hashFiles('Package.resolved') }} | |
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm | |
- 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 tests | |
run: | | |
./fourier test tuist unit | |
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-${{ hashFiles('Package.resolved') }}-git-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-${{ hashFiles('Package.resolved') }} | |
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm | |
- 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 | |
acceptance_tests: | |
name: ${{ matrix.feature }} acceptance tests with Xcode | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
feature: | |
[ | |
'build', | |
'cache-frameworks', | |
'cache-xcframeworks', | |
'dependencies', | |
'edit', | |
'env', | |
'generate-1', | |
'generate-2', | |
'generate-3', | |
'generate-4', | |
'generate-5', | |
'generate-6', | |
'generate-7', | |
'generate-8', | |
'graph', | |
'init', | |
'list-targets', | |
'plugins', | |
'precompiled', | |
'run', | |
'scaffold', | |
'tasks', | |
'test', | |
'plugin', | |
] | |
needs: release_build | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- 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-${{ hashFiles('Package.resolved') }}-git-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm-${{ hashFiles('Package.resolved') }} | |
${{ runner.os }}-${{ hashFiles('.xcode-version') }}-spm | |
- 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', 'project/cloud/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 tests | |
if: ${{ (github.event.pull_request.head.repo.full_name == github.repository) }} | |
run: ./fourier test tuist acceptance projects/tuist/features/${{ matrix.feature }}.feature | |
lint: | |
name: Lint | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Select Xcode | |
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app | |
- 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 }}${{ 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: Install Bundler dependencies | |
run: bundle install | |
- name: Run | |
run: ./fourier lint tuist | |
lint-lockfiles: | |
name: Lint lockfiles | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Select Xcode | |
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app | |
- 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 }}${{ 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: Install Bundler dependencies | |
run: bundle install | |
- name: Run | |
run: ./fourier lint lockfiles |