all repos

json2go @ v0.1.2

convert json to go type annotations

json2go/.github/workflows/go.yml(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: go
on:
  workflow_dispatch:
  push:
    branches: [main]
    paths: ["**.go", "go.mod", "go.sum"]
  pull_request:
    paths: ["**.go", "go.mod", "go.sum"]

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5

      - name: setup go
        uses: actions/setup-go@v5
        with:
          go-version-file: go.mod
          cache-dependency-path: go.mod

      - name: build
        run: go build ./cmd/json2go

      - name: test
        run: go test -v ./...