Allow ETag based caching of static web pages #10
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 workflow builds all platformio build targets to test whether any of them were broken by a commit. | |
name: Platform IO test | |
on: | |
push: | |
paths: | |
- test/** | |
- lib/** | |
- shared/** | |
- platformio.ini | |
- .github/workflows/pio_test.yml | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
name: Platform IO test (${{ matrix.os }}) | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
fail-fast: false | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Cache pip packages and Platform IO build cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio | |
.pio | |
key: platformio-${{ hashFiles('platformio.ini') }}-${{ matrix.os }} | |
- name: Install Platform IO | |
run: pip install -U platformio | |
- name: Platform IO test | |
run: pio test -e native |