Skip to content

Commit 1286cd7

Browse files
committed
Switch to loops and add fakedir to test for failure
1 parent 442a5d0 commit 1286cd7

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,28 @@ jobs:
1111
runs-on: ubuntu-latest
1212
container: mbedos/mbed-os-env:stable
1313

14+
env:
15+
# The list of projects to run on. This should just run for each dir that includes a mbed_app.json
16+
PROJECTS: bms fakedir
17+
1418
steps:
1519
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1620
- uses: actions/checkout@v2
1721

1822
# Install dependencies for all projects
1923
- name: Install dependencies
20-
run: find . -maxdepth 2 -name 'mbed_app.json' -exec sh -c "cd $(dirname '{}') && mbed update" \;
24+
run: |
25+
for PROJECT in $PROJECTS; do
26+
pushd $PROJECT
27+
mbed deploy
28+
popd
29+
done
2130
2231
# Compile all projects
2332
- name: Compile
24-
run: find . -maxdepth 2 -name 'mbed_app.json' -exec sh -c "cd $(dirname '{}') && mbed update" \;
33+
run: |
34+
for PROJECT in $PROJECTS; do
35+
pushd $PROJECT
36+
mbed compile
37+
popd
38+
done

0 commit comments

Comments
 (0)