dependencies bump #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: Go | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Code sanity | |
run: make code-up-to-date | |
- name: Test | |
run: make test-with-report | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: coverage*.* | |
- name: Codecov | |
# You may pin to the exact commit or the version. | |
# uses: codecov/codecov-action@6004246f47ab62d32be025ce173b241cd84ac58e | |
uses: codecov/codecov-action@v3 | |
with: | |
# User defined upload name. Visible in Codecov UI | |
name: # optional | |
# Repository upload token - get it from codecov.io. Required only for private repositories | |
token: # optional | |
# Path to coverage file to upload | |
file: # optional | |
# Comma-separated list of files to upload | |
files: # optional | |
# Directory to search for coverage reports. | |
directory: # optional | |
# Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome) | |
flags: # optional | |
# Write upload file to path before uploading | |
path_to_write_report: # optional | |
# Environment variables to tag the upload with (e.g. PYTHON | OS,PYTHON) | |
env_vars: # optional | |
# Specify whether or not CI build should fail if Codecov runs into an error during upload | |
fail_ci_if_error: # optional |