mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 01:04:59 +00:00
Previously the error message didn't look nice:
holos compare buildplans before.yaml after.yaml
could not run: document 1: - holos.run/stack.name: httpbin
+ holos.run/stack.name: httpbinX at internal/compare/compare.go:331
With this patch:
holos compare buildplans before.yaml after.yaml
error at internal/compare/compare.go:331: document 1 not equivalent:
- holos.run/stack.name: httpbin
+ holos.run/stack.name: httpbinX
44 lines
744 B
YAML
44 lines
744 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- test
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: stable
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v4
|
|
with:
|
|
version: '3.17.3'
|
|
|
|
- name: Set up Kubectl
|
|
uses: azure/setup-kubectl@v4
|
|
|
|
- name: Install holos
|
|
run: make install
|
|
|
|
- name: Test
|
|
run: ./scripts/test
|