Skip to content

Change portTICK_RATE_MS to pdMS_TO_TICKS #97

Change portTICK_RATE_MS to pdMS_TO_TICKS

Change portTICK_RATE_MS to pdMS_TO_TICKS #97

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
pull_request:
jobs:
configuration:
name: Build tests list
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: echo "matrix=$(ls *.yaml | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
working-directory: ${{ github.workspace }}/tests
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
build:
name: Build ${{ matrix.config-file }}
needs: configuration
runs-on: ubuntu-latest
strategy:
matrix:
config-file: ${{ fromJson(needs.configuration.outputs.matrix) }}
fail-fast: false
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Build firmware
uses: esphome/build-action@v4
id: esphome-build
with:
yaml-file: tests/${{ matrix.config-file }}
version: latest
ci-status:
name: Status
runs-on: ubuntu-latest
needs:
- build
if: always()
steps:
- name: Success
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1