debug commit #118
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: Build & 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@v5 | |
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: Set GOCOVERDIR | |
run: echo "GOCOVERDIR=/home/runner/work/cosi-driver/cosi-driver" >> $GITHUB_ENV | |
- name: Run tests | |
run: make test | |
- name: Upload test coverage to codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: scality/cosi-driver | |
dev-container-with-docker: | |
permissions: | |
contents: read | |
packages: write | |
uses: scality/workflows/.github/workflows/docker-build.yaml@v2 | |
with: | |
context: . | |
name: cosi-driver | |
namespace: ${{ github.repository_owner }} | |
tag: ${{ github.sha }} |