Skip to content

Commit

Permalink
Use matrix to run tests on all folders
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Sep 20, 2024
1 parent f780e7c commit 2c3b92d
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ on:

jobs:
build_and_test:
strategy:
matrix:
folder:
- 04-tdd-in-the-real-world
- 05-fixtures
- 06-testing-static-swiftui-views
- 07-testing-dynamic-swiftui-views
- 08-stub
- 09-json-decoding
- 10-networking
- 11-dependency-injection-with-environment-object
- 12-spy
- 13-testing-view-presentation
- 14-fixing-bugs-and-changing-code
- 15-fake-and-dummy
- 17-appendix-b-nimble-only
- 18-appendix-b-quick-and-nimble
- 19-appendix-c-uikit
runs-on: macos-14
steps:
- name: Check Xcode version
Expand All @@ -13,8 +31,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Test
- name: Test examples ${{ matrix.folder }}
run: |
brew install xcodegen
cd ./04-tdd-in-the-real-world
cd ./${{ matrix.folder }}
echo "Currently in $(pwd)"
make

0 comments on commit 2c3b92d

Please sign in to comment.