Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
fullpipe committed Sep 10, 2024
1 parent 15956f3 commit a05f79e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
name: test
on: [push, pull_request]
jobs:
test-nocache:
strategy:
matrix:
go-version: [1.22.x, 1.23.x]
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Checkout
uses: actions/checkout@v4
with:
go-version: ${{ matrix.go-version }}
cache: false
- run: go test ./...
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5

- name: Install dependencies
run: go mod download

- name: Run tests
run: go test -race -coverprofile=coverage.txt ./...

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ICU MessageFormat for Golang

[![test](/~https://github.com/fullpipe/icu-mf/actions/workflows/test.yml/badge.svg)](/~https://github.com/fullpipe/icu-mf/actions/workflows/test.yml)
[![codecov](https://codecov.io/github/fullpipe/icu-mf/graph/badge.svg?token=W6C02M3BFQ)](https://codecov.io/github/fullpipe/icu-mf)
[![lint](/~https://github.com/fullpipe/icu-mf/actions/workflows/lint.yml/badge.svg)](/~https://github.com/fullpipe/icu-mf/actions/workflows/lint.yml)

Messages in your application are never static. They have variables, pluralization, and formatting.
Expand Down

0 comments on commit a05f79e

Please sign in to comment.