Rewrite CI/CD pipeline

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-25 17:42:29 +01:00
parent c9af5620a9
commit 7e685a2e96
7 changed files with 780 additions and 556 deletions

30
.github/actions/setup/action.yaml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: "Setup"
description: "Set up Go and/or Node.js toolchains"
inputs:
go:
description: "Set up Go toolchain and download modules"
required: false
default: "true"
node:
description: "Set up Node.js and install dependencies"
required: false
default: "true"
runs:
using: "composite"
steps:
- if: inputs.go == 'true'
uses: "actions/setup-go@v6"
with:
go-version: "1.26.1"
cache: true
- if: inputs.go == 'true'
shell: bash
run: go mod download
- if: inputs.node == 'true'
uses: "actions/setup-node@v6"
with:
node-version-file: ".nvmrc"
cache: "npm"
- if: inputs.node == 'true'
shell: bash
run: npm ci