Skip to content

Version 2.9.1

Version 2.9.1 #16

Workflow file for this run

name: Go Test πŸš€
on: [push, pull_request]
jobs:
build:
name: 🐹 Test with Go ${{ matrix.go-version }}
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- 1.20.x
- 1.21.x
- 1.22.x
- 1.23.x
steps:
- name: πŸ”„ Checkout Repository
uses: actions/checkout@v4
- name: πŸ› οΈ Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: πŸ“¦ Install Dependencies
run: go mod download
- name: 🌐 Set CLOUDINARY_URL
run: |
export CLOUDINARY_URL=$(bash scripts/get_test_cloud.sh)
echo "CLOUDINARY_URL=$CLOUDINARY_URL" >> $GITHUB_ENV
echo "cloud_name: $(echo $CLOUDINARY_URL | cut -d'@' -f2)"
- name: 🧰 Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: πŸ§ͺ Run Tests
run: |
gotestsum --junitfile unit-tests.xml --format pkgname ./...
- name: πŸ“Š Test Summary
uses: test-summary/action@v2
with:
paths: "unit-tests.xml"
if: always()