Skip to content

Commit

Permalink
👷 Test action 전에 checkout 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftyJunnos committed Nov 27, 2023
1 parent 3d5762a commit f2c0f2e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/Xcode_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:
outputs:
matrix: ${{ steps.generate-test-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4

- name: Generate test matrix
id: generate-test-matrix
run: |
Expand Down
16 changes: 16 additions & 0 deletions test
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

matrix="{\"include\":["
first_entry=true
for scheme in $(xcodebuild -workspace iOS/MusicSpot.xcworkspace -list | grep -A 100 "Schemes:" | grep -v "Schemes:" | sed '/^$/d' | sed 's/^[ \t]*//'); do
if [[ $scheme == *"Tests" ]]; then
if [ "$first_entry" = true ]; then
first_entry=false
else
matrix+=","
fi
matrix+="{\"scheme\":\"$scheme\"}"
fi
done
matrix+="]}"
echo $matrix

0 comments on commit f2c0f2e

Please sign in to comment.