Skip to content

add support {{if}} control struct for output templates (#45) #148

add support {{if}} control struct for output templates (#45)

add support {{if}} control struct for output templates (#45) #148

Workflow file for this run

---
name: CI
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: lint
uses: golangci/golangci-lint-action@v3.7.0
with:
version: v1.50.1
tests-on-unix:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: ubuntu-latest
strategy:
matrix:
golang:
- "1.18"
- "1.19"
- "1.20"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.golang }}
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Run tests
run: make test