-
Notifications
You must be signed in to change notification settings - Fork 597
43 lines (40 loc) · 1 KB
/
smoke-universal.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Smoke test "universal" build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
paths:
- src/universal/**
- .github/universal/smoke-universal.yaml
- .github/actions/**
- build/**
jobs:
smoke-test:
name: Smoke test
runs-on: devcontainer-image-builder-ubuntu
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3
- name: Get userUid from host machine
id: get-useruid
run: |
set -e
USER_UID=$(id -u)
USER_GID=$(id -g)
echo "UserUid::$USER_UID"
echo "UserGid::$USER_GID"
echo "USER_UID=$USER_UID" >> $GITHUB_ENV
echo "USER_GID=$USER_GID" >> $GITHUB_ENV
- name: Smoke test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USER_UID: ${{ env.USER_UID }}
USER_GID: ${{ env.USER_GID }}
id: smoke_test
uses: ./.github/actions/smoke-test
with:
image: universal
threshold: 10