Skip to content

Commit 40eb113

Browse files
committed
andy-debug
1 parent 19e83f1 commit 40eb113

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/unit-test.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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}"

0 commit comments

Comments
 (0)