Skip to content

fix(formatters): handle map input in ToPrettyData #50

fix(formatters): handle map input in ToPrettyData

fix(formatters): handle map input in ToPrettyData #50

Workflow file for this run

name: CI
on:
push:
branches: [main, master, develop]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
env:
GO_VERSION: "1.26"
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Gavel test
uses: flanksource/gavel@main
with:
args: test --test-timeout 10m --timeout 20m
comment-header: gavel-test
artifact-name: gavel-test-results
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
# The gavel action always injects `--show-passed`, which `gavel lint`
# rejects (only `gavel test` accepts it), so run the binary directly.
- name: Install gavel
run: |
mkdir -p "$HOME/.local/bin"
curl -fsSL "https://github.com/flanksource/gavel/releases/download/${GAVEL_VERSION}/gavel_linux_amd64.tar.gz" -o /tmp/gavel.tar.gz
tar -xzf /tmp/gavel.tar.gz -C /tmp
install -m 0755 /tmp/gavel "$HOME/.local/bin/gavel"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
env:
GAVEL_VERSION: v0.0.39
- name: Gavel lint
run: gavel lint --no-progress --no-color
openapi:
name: OpenAPI Integration
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Run OpenAPI integration tests
run: make test:openapi
env:
CGO_ENABLED: 1