Skip to content

Commit 09a325f

Browse files
author
Cole Kennedy
committed
.
1 parent bc7039c commit 09a325f

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/workflows/test.yml

+20-9
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,26 @@ jobs:
2626
- name: Install dependencies
2727
run: npm ci
2828

29-
- name: Test with Sigstore and Archivista
30-
id: sigstore-attestation
29+
- name: Test wrapper with time command
30+
id: time-test
3131
uses: ./
3232
with:
3333
action-ref: "actions/hello-world-javascript-action@main"
34-
who-to-greet: "Sigstore" # Required input passed correctly
35-
step: test-sigstore
36-
attestations: "environment github slsa"
37-
attestor-slsa-export: "true"
38-
enable-sigstore: "true"
39-
enable-archivista: "true"
40-
input-who-to-greet: "input-Sigstore" # Required input passed incorrectly
34+
wrapper-command: "time -v"
35+
input-who-to-greet: "Time"
36+
37+
- name: Check time output
38+
run: |
39+
if [ -f "${{ steps.time-test.outputs.wrapper-log }}" ]; then
40+
echo "Time log file exists at ${{ steps.time-test.outputs.wrapper-log }}"
41+
cat "${{ steps.time-test.outputs.wrapper-log }}"
42+
else
43+
echo "Time log file not found!"
44+
exit 1
45+
fi
46+
47+
- name: Upload time logs as artifact
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: time-logs
51+
path: ${{ steps.time-test.outputs.wrapper-log }}

0 commit comments

Comments
 (0)