From 24558847713b09e61640ad35a5c1d3fa143cb8df Mon Sep 17 00:00:00 2001 From: Daniel Paulus Date: Mon, 14 Oct 2024 23:02:58 +0200 Subject: [PATCH 1/2] run self hosted gh action test --- .github/workflows/test.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f780b163..5bd27b80 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,13 +15,33 @@ jobs: cache: true #- name: Install Libusb - # run: choco install + # run: choco install - name: Build executable run: go build #- name: Run fast tests # run: go test -v -tags=fast ./... + test_with_device: + runs-on: self-hosted + steps: + - uses: actions/checkout@v3 + + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version-file: go.mod + cache: true + - name: update + run: sudo apt-get update + + - name: install libusb + run: sudo apt-get install -y libusb-1.0-0-dev + + - name: Build executable + run: make build --trace + - name: test ios list + run: go run main.go list test_on_linux: runs-on: ubuntu-latest From 65d2de413eb976918f861586ef8d66f78ac616fc Mon Sep 17 00:00:00 2001 From: Daniel Paulus Date: Mon, 14 Oct 2024 23:04:56 +0200 Subject: [PATCH 2/2] remove unneeded steps --- .github/workflows/test.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5bd27b80..06a4de0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,18 +26,6 @@ jobs: runs-on: self-hosted steps: - uses: actions/checkout@v3 - - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version-file: go.mod - cache: true - - name: update - run: sudo apt-get update - - - name: install libusb - run: sudo apt-get install -y libusb-1.0-0-dev - - name: Build executable run: make build --trace - name: test ios list