From 310c37c905c08fc2b34e50286002c1a83156a503 Mon Sep 17 00:00:00 2001 From: yuetloo Date: Mon, 9 Dec 2024 09:44:56 -0500 Subject: [PATCH 1/2] add E2E test ci job --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..42ce2ce --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: E2E tests +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Setup node version + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Checkout pixie-firmware + run: | + git clone ${{ github.server_url }}/firefly/pixie-firmware.git + cd pixie-firmware + git checkout main + git submodule deinit -- components/firefly-display + git submodule set-url -- components/firefly-display ${{ github.server_url }}/${{ github.repository}}.git + git submodule set-branch -b ${{ github.ref_name }} -- components/firefly-display + cat .gitmodules + git submodule update --init --remote --checkout --recursive -- components/firefly-display + git submodule update --init --remote --checkout --recursive -- components/firefly-display + - name: Verify scene and display components + run: | + cd pixie-firmware + ls -la components/firefly-scene + ls -la components/firefly-display + git submodule status + - name: Build pixie-firmware using Docker + id: build + run: | + cd pixie-firmware + docker run --rm -v $PWD:/project -w /project -e HOME=/tmp espressif/idf idf.py build + - name: Verify assets + run: | + cd pixie-firmware + ls -l build/pixie.bin + ls -l build/bootloader/bootloader.bin + ls -l build/partition_table/partition-table.bin From 62b68063684c5fac8fbaa33f7d95d12e56c07373 Mon Sep 17 00:00:00 2001 From: yuetloo Date: Mon, 9 Dec 2024 09:53:54 -0500 Subject: [PATCH 2/2] fix missing component --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42ce2ce..6f596f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: git submodule set-url -- components/firefly-display ${{ github.server_url }}/${{ github.repository}}.git git submodule set-branch -b ${{ github.ref_name }} -- components/firefly-display cat .gitmodules - git submodule update --init --remote --checkout --recursive -- components/firefly-display + git submodule update --init --remote --checkout --recursive -- components/firefly-scene git submodule update --init --remote --checkout --recursive -- components/firefly-display - name: Verify scene and display components run: |