COSI-98: Pin COSI install to v1alpha1 (v0.2.2) #402
Workflow file for this run
This file contains hidden or 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@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| 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 }} |