From 0517eae6842d2e9017767d855150696f1e417669 Mon Sep 17 00:00:00 2001 From: Christian Walter Date: Wed, 20 Mar 2024 14:39:38 +0100 Subject: [PATCH] feat: add Bootguard Integration Test Signed-off-by: Christian Walter --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c066f2f0..3e024b1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: - v* branches: - main + - feat/addBtGTests pull_request: jobs: build: @@ -52,6 +53,41 @@ jobs: - name: go test run: go test -v ./pkg/... + integrationBtG: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Download file + run: | + wget "https://download.asrock.com/BIOS/4677/W790%20WS(4.04)ROM.zip" + unzip W790\ WS\(4.04\)ROM.zip + mv W790-WS_4.04.ROM firmware.bin + + - name: Download Artifacts + uses: actions/download-artifact@v4 + with: + name: artifacts-amd64 + path: ./artifacts + + - name: Make artifacts executable + run: chmod +x ./artifacts/* + + - name: Check PWD + run: | + pwd + + - name: Check Image + run: | + ls -l . + + - name: Check FIT + run: | + ./artifacts/bg-prov fit-show ./firmware.bin + generateTemplates: needs: build runs-on: ubuntu-latest