Skip to content

Commit

Permalink
feat(mod): update cig
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-maple committed Oct 27, 2023
1 parent 89480c2 commit 23c5610
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Go
name: CI

on: [ push ]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
go-version:
- '1.16'
- '1.17'
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Windows

on: [ push ]

jobs:
build:
strategy:
matrix:
os: [ windows-latest ]
go-version:
- '1.16'
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- '1.21.x'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: subdir/go.sum
- name: Install dependencies
run: go mod tidy
- name: Install Wire
run: go install "github.com/google/wire/cmd/wire@latest"
- name: Test
run: go test -coverprofile="coverage.txt" -covermode="atomic" ./...
- name: Codecov
uses: codecov/codecov-action@v3
- name: Build
run: go build -v ./
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

<div align=center>

[![Go](https://github.com/go-zing/gozz/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/go-zing/gozz/actions/workflows/build.yml)
[![Go](https://github.com/go-zing/gozz/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/go-zing/gozz/actions/workflows/ci.yml)
[![Go](https://github.com/go-zing/gozz/actions/workflows/windows.yml/badge.svg?branch=main)](https://github.com/go-zing/gozz/actions/workflows/windows.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-zing/gozz)](https://goreportcard.com/report/github.com/go-zing/gozz)
[![Go Reference](https://pkg.go.dev/badge/github.com/go-zing/gozz.svg)](https://pkg.go.dev/github.com/go-zing/gozz)

Expand Down

0 comments on commit 23c5610

Please sign in to comment.