sync main to r1.0 to release localcache v1.0.0 (#27) #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Localcache Pull Request Check | |
on: | |
pull_request: | |
paths: | |
- 'localcache/**' | |
- '.github/workflows/localcache.yml' | |
push: | |
paths: | |
- 'localcache/**' | |
- '.github/workflows/localcache.yml' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- name: Build | |
run: cd localcache && go build -v ./... | |
- name: Test | |
run: cd localcache && go test -v -coverprofile=coverage.out ./... | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./localcache/coverage.out | |
flags: localcache | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |