Skip to content

Merge pull request #2691 from headlamp-k8s/automate-choco-workflow #6517

Merge pull request #2691 from headlamp-k8s/automate-choco-workflow

Merge pull request #2691 from headlamp-k8s/automate-choco-workflow #6517

Workflow file for this run

name: Build App
on:
pull_request:
paths:
- 'frontend/**'
- 'Makefile'
- '.github/**'
- 'app/**'
- 'backend/**'
push:
branches:
- main
- rc-*
- testing-rc-*
paths:
- 'frontend/**'
- Makefile
- '.github/**'
- 'app/**'
- 'backend/**'
permissions:
contents: read
jobs:
build-linux:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.22.*'
- name: App linux
run: |
make app-linux
build-windows:
runs-on: windows-2019
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.22.*'
- name: Dependencies
uses: crazy-max/ghaction-chocolatey@e80bd39bb49cae70b67ea53d52d00833a7255c21 # v1.7.0
with:
args: install make
- name: App Windows
run: make app-win
build-mac:
runs-on: macos-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.22.*'
- name: Dependencies
run: brew install make
- name: App Mac
run: |
make app-mac