refactor: change the package name to stdlib, as well as add env packa… #20
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [ ">=1.18.0" ] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Lint | |
run: make lint | |
- name: Test | |
run: | | |
eval $(ssh-agent) | |
make test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
- name: Add coverage.out to artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: coverage-out | |
path: ./coverage.out | |
- name: Add coverage.html to artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: coverage-html | |
path: ./coverage.html |