Skip to content

Merge branch 'develop' into feature/refactor-providers-package #15

Merge branch 'develop' into feature/refactor-providers-package

Merge branch 'develop' into feature/refactor-providers-package #15

Workflow file for this run

name: CI
permissions:
contents: read
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: 1.22.3
- name: Install dependencies
run: go mod tidy
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out the repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: 1.22.3
- name: Run tests and generate coverage
run: go test -coverprofile=coverage.out ./...
## This step will only be executed if the actions variable CODECOV_BRANCHES
## is set as an array of branches to upload to Codecov.
## Example --var CODECOV_BRANCHES='["main", "feature-1"]'
- name: Upload coverage to Codecov
if: ${{ contains(fromJson(vars.CODECOV_BRANCHES), github.ref_name) }}
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
flags: unittests
name: codecov-umbrella
verbose: true