diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3472157 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: "Test" + +on: + push: + tags-ignore: [ "v[0-9]+.[0-9]+.[0-9]+.*", "trigger-push" ] + pull_request: + +jobs: + test: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + + - uses: "actions/cache@v4" + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: "${{ runner.os }}-pio" + + - uses: "actions/setup-python@v4" + with: + python-version: "3.12" + + - name: "Copy File" + run: "cp include/secrets.h.dist include/secrets.h" + + - name: "Install PlatformIO Core" + run: "pip install --upgrade platformio" + + - name: "Build PlatformIO Project" + run: "pio run"