diff --git a/.github/workflows/merge_to_develop_on_pr.yml b/.github/workflows/merge_to_develop_on_pr.yml new file mode 100644 index 00000000..fb587674 --- /dev/null +++ b/.github/workflows/merge_to_develop_on_pr.yml @@ -0,0 +1,72 @@ +name: PR to [develop] +on: + pull_request: + branches: [ develop ] + +#1. load mise +#2. cache tuist +#3. install tuist +#4. checkout tuist project repository +#5. fetch XCConfig from repository +#6. test tuist project + +jobs: + test: + runs-on: macos-latest + env: + TUIST_VERSION: 4.12.1 + steps: + + #1. load mise + - uses: jdx/mise-action@v2 + + #2. cache tuist + - name: cache tuist + id: cache-tuist + uses: actions/cache@v4 + with: + path: /Users/runner/.local/share/mise/shims/tuist + key: ${{ runner.os }}-tuist@${{ env.TUIST_VERSION }} + + #3. install tuist + - name: install tuist + if: steps.cache-tuist.outputs.cache-hit != 'true' + run: | + mise install tuist@${{ env.TUIST_VERSION }} + mise use -g tuist@${{ env.TUIST_VERSION }} + + - name: install tree + run: brew install tree + + - name: check paths + run: | + echo "tuist in installed in $(which tuist)" + echo "tree in installed in $(which tree)" + + #4. checkout tuist project repository + - name: checkout project + uses: actions/checkout@v4 + + #5. fetch XCConfig from repository + - name: fetch xcconfig + uses: actions/checkout@v4 + with: + repository: ${{ secrets.XCCONFIG_REPO }} + token: ${{ secrets.XCCONFIG_REPO_TOKEN }} + path: '${{ github.workspace }}/project/XcodeConfiguration' + + - name: check xcconfig files + run: | + echo "Checking configurations are loaded..." + tree ${{ github.workspace }}/project/XcodeConfiguration + + #6. test tuist project + - name: Test project + run: | + cd project + tuist install + tuist test + + + + diff --git a/.gitignore b/.gitignore index b5b77e23..772af3e6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ # Ignore all xcconfig files in all directories **/*.xcconfig +XcodeConfiguration/ # Ignore Derived **/Derived/