Skip to content

Commit

Permalink
fix: ci check for build phases
Browse files Browse the repository at this point in the history
  • Loading branch information
mflknr committed Jun 14, 2024
1 parent 647118c commit e77883e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
pull_request:
branches: [ "main", "develop" ]

env:
CI: true

jobs:
build:
runs-on: macos-latest
Expand Down Expand Up @@ -113,6 +110,5 @@ jobs:
base64-encoded-secret: ${{ secrets.SHARED_XCCONFIG }}
filename: "Shared.xcconfig"
working-directory: ".configurations/.xcconfig"
- run: export CI="true"
- run: make prepare
- run: make ci-lint-periphery
5 changes: 2 additions & 3 deletions Tuist/ProjectDescriptionHelpers/ScriptPhases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ extension Project {
static func makeSwiftLintScriptPhase() -> TargetScript {
.post(
script: """
printenv
if [[ -z ${CI} ]] ; then
if [[ ${USER} == "runner" ]] ; then
make local-lint-swiftlint
else
echo "Skipping SwiftLint build phase on pipeline. Local build phase only."
Expand All @@ -24,7 +23,7 @@ extension Project {
static func makeSwiftFormatScriptPhase() -> TargetScript {
.post(
script: """
if [[ -z ${CI} ]] ; then
if [[ ${USER} == "runner" ]] ; then
make local-lint-swiftformat
else
echo "Skipping SwiftFormat build phase on pipeline. Local build phase only."
Expand Down

0 comments on commit e77883e

Please sign in to comment.