Skip to content

Commit

Permalink
chore: fix paths to examples in workflows (#7069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr authored Sep 3, 2024
1 parent 1cf6e9f commit 53cf72f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
wing test main.w
cd ..
done
- name: Download examples/tests/valid/hello.test.w
- name: Download tests/valid/hello.test.w
run: |
curl -L https://raw.githubusercontent.com/winglang/wing/main/examples/tests/valid/hello.test.w > hello.test.w
curl -L https://raw.githubusercontent.com/winglang/wing/main/tests/valid/hello.test.w > hello.test.w
cat hello.test.w
- name: Run Compile
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sdk-spec-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
id: setdirs
shell: bash
run: | # TODO: skipping std, math and external folders, when https://github.com/winglang/wing/issues/3168 is resolve- we'll skip only the external folder.
dirs=$(ls -d examples/tests/sdk_tests/*/ | sed 's/\/$//' | grep -v "external\|std\|math" | jq -R -s -c 'split("\n")[:-1]')
dirs=$(ls -d tests/sdk_tests/*/ | sed 's/\/$//' | grep -v "external\|std\|math" | jq -R -s -c 'split("\n")[:-1]')
processed_dirs=$(echo "{ \"directory\": $dirs }" | jq -c '[ .directory[] | {directory: ., name: (split("/") | last)}]')
wrapped_dirs=$(echo $processed_dirs | jq -c .)
echo "dirs=$wrapped_dirs" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
########################################################################
- name: Installing external js modules
run: |
cd examples/tests/sdk_tests
cd tests/sdk_tests
npm install
- name: Configure AWS credentials
if: ${{ matrix.target == 'tf-aws' }}
Expand Down

0 comments on commit 53cf72f

Please sign in to comment.