all repos

json2go @ v0.2.0

convert json to go type annotations

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
refactor: use an actual parser instead of reflection..., 11 days ago
1
name: go
2
on:
3
  workflow_dispatch:
4
  push:
5
    branches: [main]
6
    paths: ["**.go", "go.mod", "go.sum"]
7
  pull_request:
8
    paths: ["**.go", "go.mod", "go.sum"]
9
10
jobs:
11
  test:
12
    runs-on: ubuntu-latest
13
    steps:
14
      - uses: actions/checkout@v5
15
16
      - name: setup go
17
        uses: actions/setup-go@v5
18
        with:
19
          go-version-file: go.mod
20
          cache-dependency-path: go.mod
21
22
      - name: build
23
        run: go build ./cmd/json2go
24
25
      - name: test
26
        run: go test -v ./...
27
28
  fuzz:
29
    runs-on: ubuntu-latest
30
    steps:
31
      - uses: actions/checkout@v5
32
33
      - name: setup go
34
        uses: actions/setup-go@v5
35
        with:
36
          go-version-file: go.mod
37
          cache-dependency-path: go.mod
38
39
      - name: fuzz parser
40
        run: go test -fuzz=FuzzParser -fuzztime=60s ./
41
42
  bench:
43
    runs-on: ubuntu-latest
44
    steps:
45
      - uses: actions/checkout@v5
46
47
      - name: setup go
48
        uses: actions/setup-go@v5
49
        with:
50
          go-version-file: go.mod
51
          cache-dependency-path: go.mod
52
53
      - name: run benchmarks
54
        run: go test -bench=. -benchmem -v ./