Skip to content

Commit

Permalink
chore: rename .github/workflows/main.yml
Browse files Browse the repository at this point in the history
Rename to ".github/workflows/test.yml".
  • Loading branch information
aofei committed Mar 21, 2022
1 parent 8a34095 commit cd91c18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Main
name: Test
on: [push, pull_request]
jobs:
test:
name: Test all
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit cd91c18

Please sign in to comment.