From cd91c18a7021adbb2ae8464f569b60a89572780e Mon Sep 17 00:00:00 2001 From: Aofei Sheng Date: Mon, 21 Mar 2022 13:42:32 +0800 Subject: [PATCH] chore: rename .github/workflows/main.yml Rename to ".github/workflows/test.yml". --- .github/workflows/{main.yml => test.yml} | 9 ++++----- README.md | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) rename .github/workflows/{main.yml => test.yml} (92%) diff --git a/.github/workflows/main.yml b/.github/workflows/test.yml similarity index 92% rename from .github/workflows/main.yml rename to .github/workflows/test.yml index 3529e8f..c2376ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,7 @@ -name: Main +name: Test on: [push, pull_request] jobs: test: - name: Test all runs-on: ubuntu-latest strategy: matrix: @@ -14,13 +13,13 @@ jobs: - "1.17.x" - "1.18.x" steps: + - name: Check out code + uses: actions/checkout@v3 - name: Set up Go uses: actions/setup-go@v3 with: go-version: ${{matrix.go}} - - name: Check out code - uses: actions/checkout@v3 - - name: Test + - name: Run Go test run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./... - name: Upload coverage profile uses: codecov/codecov-action@v2 diff --git a/README.md b/README.md index 64a690d..6332689 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MIMESniffer -[![GitHub Actions](https://github.com/aofei/mimesniffer/workflows/Main/badge.svg)](https://github.com/aofei/mimesniffer) +[![GitHub Actions](https://github.com/aofei/mimesniffer/workflows/Test/badge.svg)](https://github.com/aofei/mimesniffer) [![codecov](https://codecov.io/gh/aofei/mimesniffer/branch/master/graph/badge.svg)](https://codecov.io/gh/aofei/mimesniffer) [![Go Report Card](https://goreportcard.com/badge/github.com/aofei/mimesniffer)](https://goreportcard.com/report/github.com/aofei/mimesniffer) [![PkgGoDev](https://pkg.go.dev/badge/github.com/aofei/mimesniffer)](https://pkg.go.dev/github.com/aofei/mimesniffer)