This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
updated codecov settings #112
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 Build and Unit Tests | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: unit-tests-with-ginkgo | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.23.2 | |
# Install Ginkgo CLI | |
- name: Install Ginkgo CLI | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest | |
- name: Install dependencies | |
run: go mod tidy | |
- name: Run tests | |
run: make test | |
- name: Upload test results to Codecov | |
if: always() | |
uses: codecov/test-results-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
dev-container-build: | |
permissions: | |
contents: read | |
packages: write | |
uses: scality/workflows/.github/workflows/docker-build.yaml@v2 | |
with: | |
context: . | |
name: cosi | |
namespace: ${{ github.repository_owner }} | |
tag: ${{ github.sha }} |