Bump redux-saga from 1.2.2 to 1.3.0 in /ps5-mqtt #1044
Workflow file for this run
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
--- | |
name: CI | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
paths: | |
- 'ps5-mqtt/**' | |
- '!ps5-mqtt/**/*.md' | |
- 'add-ons/**' | |
- '!add-ons/**/*.md' | |
- '!add-ons/**/*.png' | |
- '.github/workflows/ci.yml' | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
workflow_dispatch: | |
jobs: | |
information: | |
name: ℹ Gather add-on information | |
runs-on: ubuntu-latest | |
outputs: | |
description: ${{ steps.information.outputs.description }} | |
name: ${{ steps.information.outputs.name }} | |
steps: | |
- name: ⤵️ Check out code from GitHub | |
uses: actions/checkout@v3 | |
- name: ⏭ Copy add-on files | |
run: | | |
cp add-ons/common/Dockerfile add-ons/ps5-mqtt-edge | |
cp add-ons/common/build.yaml add-ons/ps5-mqtt-edge | |
cp add-ons/common/.dockerignore add-ons/ps5-mqtt-edge | |
- name: 🚀 Run add-on information action | |
id: information | |
uses: frenck/action-addon-information@v1.4 | |
with: | |
path: "./add-ons/ps5-mqtt-edge" | |
build: | |
needs: information | |
runs-on: ubuntu-latest | |
name: 🏭 Build add-on | |
strategy: | |
matrix: | |
arch: ["aarch64", "amd64", "armhf", "armv7", "i386"] | |
steps: | |
- name: ⤵ Check out repository | |
uses: actions/checkout@v3.0.2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
cache-dependency-path: ./ps5-mqtt/package-lock.json | |
cache: 'npm' | |
- name: ⏬ Install dependencies | |
working-directory: ./ps5-mqtt | |
run: npm ci | |
- name: 🧪 Run tests | |
working-directory: ./ps5-mqtt | |
run: npm test | |
- name: 👨🏭 Build App | |
working-directory: ./ps5-mqtt | |
run: npm run build | |
- name: ⏭ Copy App Files | |
run: | | |
cp -R ps5-mqtt add-ons/ps5-mqtt-edge | |
cp add-ons/common/Dockerfile add-ons/ps5-mqtt-edge | |
cp add-ons/common/build.yaml add-ons/ps5-mqtt-edge | |
cp add-ons/common/.dockerignore add-ons/ps5-mqtt-edge | |
- name: 🔐 Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: 🏭 Build ${{ matrix.arch }} add-on - Edge | |
uses: home-assistant/builder@master | |
if: github.actor != github.repository_owner | |
with: | |
args: | | |
${{ env.BUILD_ARGS }} \ | |
--${{ matrix.arch }} \ | |
--target /data/add-ons/ps5-mqtt-edge \ | |
--version edge \ | |
--no-latest \ | |
--image "ps5-mqtt/${{ matrix.arch }}" \ | |
--docker-hub "ghcr.io/${{ github.repository_owner }}" \ | |
--test \ | |
--addon | |
- name: 🏭 Build & Deploy ${{ matrix.arch }} add-on - Edge | |
uses: home-assistant/builder@master | |
if: github.actor == github.repository_owner | |
with: | |
args: | | |
${{ env.BUILD_ARGS }} \ | |
--${{ matrix.arch }} \ | |
--target /data/add-ons/ps5-mqtt-edge \ | |
--version edge \ | |
--no-latest \ | |
--image "ps5-mqtt/${{ matrix.arch }}" \ | |
--docker-hub "ghcr.io/${{ github.repository_owner }}" \ | |
--addon |