Skip to content

Commit 1f12245

Browse files
committed
Modified github action build
1 parent 846cd2e commit 1f12245

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Run Test on Demand
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build_and_test:
8+
runs-on: ubuntu-24.04
9+
steps:
10+
- name: Checkout the repo
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Docker Buildx
14+
uses: docker/setup-buildx-action@v3
15+
16+
- name: Set up extension
17+
run: |
18+
echo "${{ secrets.extension }}" > extension.sh
19+
chmod 700 extension.sh
20+
shell: bash
21+
22+
- name: Build base image
23+
run: script -e -c "./app.sh build base test"
24+
25+
- name: Build sample image
26+
run: script -e -c "./app.sh build emulator test 11.0"
27+
28+
- name: Run unit-test
29+
run: script -e -c "./app.sh test emulator test 11.0 && sudo mv tmp/* ."
30+
31+
- name: Publish test result
32+
run: bash <(curl -s https://codecov.io/bash)

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ on:
44
push:
55
branches:
66
- master
7-
pull_request:
8-
branches:
9-
- master
107

118
jobs:
129
build_and_test:
1310
runs-on: ubuntu-24.04
11+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor == 'budtmo'
1412
steps:
1513
- name: Checkout the repo
1614
uses: actions/checkout@v4

0 commit comments

Comments
 (0)