-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add input to output full esp-web-tools manifest (#43)
- Loading branch information
1 parent
cedc256
commit e8be2d3
Showing
7 changed files
with
122 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ concurrency: | |
|
||
jobs: | ||
build: | ||
name: Build test configuration for esphome:${{ matrix.esphome-version }} | ||
name: Build test configuration for esphome:${{ matrix.esphome-version }} with ${{ matrix.manifest }} manifest | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -28,6 +28,9 @@ jobs: | |
- stable | ||
- beta | ||
- dev | ||
manifest: | ||
- complete | ||
- partial | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -41,16 +44,17 @@ jobs: | |
cache: true | ||
release_summary: "Test release summary" | ||
release_url: "https://github.com/esphome/build-action" | ||
complete-manifest: ${{ matrix.manifest == 'complete' }} | ||
- name: Write version to file | ||
run: echo ${{ steps.esphome-build.outputs.version }} > ${{ steps.esphome-build.outputs.name }}/version | ||
- name: Upload ESPHome binary | ||
uses: actions/[email protected] | ||
with: | ||
name: build-output-files-${{ matrix.esphome-version }} | ||
name: build-output-files-${{ matrix.esphome-version }}-${{ matrix.manifest }} | ||
path: ${{ steps.esphome-build.outputs.name }} | ||
|
||
verify: | ||
name: Verify output files for esphome:${{ matrix.esphome-version }} | ||
name: Verify output files for esphome:${{ matrix.esphome-version }} with ${{ matrix.manifest }} manifest | ||
runs-on: ubuntu-latest | ||
needs: build | ||
strategy: | ||
|
@@ -60,20 +64,23 @@ jobs: | |
- stable | ||
- beta | ||
- dev | ||
manifest: | ||
- complete | ||
- partial | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Download files | ||
uses: actions/[email protected] | ||
with: | ||
name: build-output-files-${{ matrix.esphome-version }} | ||
name: build-output-files-${{ matrix.esphome-version }}-${{ matrix.manifest }} | ||
|
||
- name: List files | ||
run: |- | ||
ls -al | ||
tree | ||
- name: Validate json file matches manifest-template.json | ||
- name: Validate json file matches ${{ matrix.manifest }} manifest-template.json | ||
run: | | ||
jq -n --arg md5 "$(md5sum test-esp32.ota.bin | head -c 32)" -f tests/manifest-template.json > /tmp/manifest.json | ||
jq -n --arg md5 "$(md5sum test-esp32.ota.bin | head -c 32)" -f tests/${{ matrix.manifest }}-manifest-template.json > /tmp/manifest.json | ||
diff <(jq --sort-keys . /tmp/manifest.json) <(jq --sort-keys . manifest.json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
venv | ||
*.bin | ||
*.json | ||
!/tests/manifest-template.json | ||
!/tests/*manifest-template.json | ||
config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "test", | ||
"version": "3.5.0", | ||
"home_assistant_domain": "esphome", | ||
"new_install_prompt_erase": false, | ||
"builds": [ | ||
{ | ||
"chipFamily": "ESP32", | ||
"ota": { | ||
"path": "test-esp32/test-esp32.ota.bin", | ||
"md5": "\($md5)", | ||
"summary": "Test release summary", | ||
"release_url": "https://github.com/esphome/build-action" | ||
}, | ||
"parts": [ | ||
{ | ||
"path": "test-esp32/test-esp32.factory.bin", | ||
"offset": 0 | ||
} | ||
] | ||
} | ||
] | ||
} |
File renamed without changes.