File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Unit Test
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ id-token : write # This is required to handle authentication for upload-private-artifact-action
10+
11+ jobs :
12+ unit-test :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Create artifacts
16+ run : |
17+ set -eux
18+
19+ mkdir build
20+ echo 8675309 > build/test-artifact.txt
21+
22+ - name : Upload artifacts
23+ id : upload
24+ uses : qualcomm-linux/upload-private-artifact-action@main
25+ with :
26+ path : ./build
27+
28+ - name : Print URL
29+ env :
30+ URL : ${{ steps.upload.outputs.url }}
31+ run : |
32+ set -eu
33+ echo "URL is ${URL}"
34+
35+ unit-test-container :
36+ runs-on : ubuntu-latest
37+ container :
38+ image : debian:trixie
39+ steps :
40+ - name : Create artifacts
41+ run : |
42+ set -eux
43+
44+ mkdir build
45+ echo 8675309 > build/test-artifact.txt
46+
47+ - name : Upload artifacts
48+ id : upload
49+ uses : qualcomm-linux/upload-private-artifact-action@main
50+ with :
51+ path : ./build
52+
53+ - name : Print URL
54+ env :
55+ URL : ${{ steps.upload.outputs.url }}
56+ run : |
57+ set -eu
58+ echo "URL is ${URL}"
You can’t perform that action at this time.
0 commit comments