Skip to content

Commit

Permalink
Fix upload path of test262 workflow artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
filipeom committed Aug 29, 2024
1 parent c809c3f commit 907fc67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test262.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
env:
TERM: screen-256color
OCAML_COMPILER: 4.14
RESULTS_FILE: results-test262_${{ github.sha }}.txt

strategy:
fail-fast: false
Expand Down Expand Up @@ -37,10 +38,11 @@ jobs:
# The workflow should succeed even if `test` has nonzero return code
continue-on-error: true
run: |
opam exec -- dune exec -- ecma-sl test --type test262 test/test262/tests/ --webhook-url "$SLACK_WEBHOOK_URL" > results-test262_${{ github.sha }}.txt
echo "$SLACK_WEBHOOK_URL"
opam exec -- dune exec -- ecma-sl test --type test262 test/test262/tests/built-ins/Boolean --webhook-url "$SLACK_WEBHOOK_URL" > ${{ env.RESULTS_FILE }}
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: test262-results
path: test262-results.txt
name: results-test262
path: ${{ env.RESULTS_FILE }}
1 change: 1 addition & 0 deletions bin/commands/cmd_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ let test_summary (output : Fpath.t option) (total_time : float)

(* Best effort to send a notification, not critical so just fail silently *)
let notify_done (tree : TestTree.t) (url : string) : unit =
Fmt.eprintf "Debug(url): %s@." url;
let url = Webhook.url_of_string url in
let head = Git.get_head () in
let title = Fmt.str "Test results (commit hash=%s) :octopus:" head in
Expand Down

0 comments on commit 907fc67

Please sign in to comment.