Skip to content

Bump dawidd6/action-download-artifact from 16 to 19 (#41) #57

Bump dawidd6/action-download-artifact from 16 to 19 (#41)

Bump dawidd6/action-download-artifact from 16 to 19 (#41) #57

Workflow file for this run

name: CI
on:
push:
branches:
- master
paths-ignore:
- 'static/**'
- '.github/workflows/publish-pages.yml'
- '.github/workflows/publish-firmware.yml'
- 'README.md'
- '.vscode/**'
pull_request:
branches:
- master
paths-ignore:
- 'static/**'
- '.github/workflows/publish-pages.yml'
- '.github/workflows/publish-firmware.yml'
- 'README.md'
- '.vscode/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
ci:
name: Building ${{ matrix.file }} / ${{ matrix.esphome-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
#### Modify below here to match your project ####
file:
- pump-controller
#### Modify above here to match your project ####
esphome-version:
- stable
- beta
- dev
steps:
- name: Checkout source code
uses: actions/checkout@v6
- name: ESPHome ${{ matrix.esphome-version }}
uses: esphome/build-action@v7
with:
yaml-file: ${{ matrix.file }}.yaml
version: ${{ matrix.esphome-version }}
- name: ESPHome ${{ matrix.esphome-version }} Factory
uses: esphome/build-action@v7
with:
yaml-file: ${{ matrix.file }}.factory.yaml
version: ${{ matrix.esphome-version }}
unit-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v6
- name: Build Tests
uses: threeal/cmake-action@v2
- name: Run Tests
uses: threeal/ctest-action@v1
with:
args: --output-junit test-results.xml
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v7
with:
name: Test Results
path: |
build/test-results.xml
event_file:
name: "Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v7
with:
name: Event File
path: ${{ github.event_path }}