Skip to content

build: update artifact CLI to v0.6.5 (#477) #838

build: update artifact CLI to v0.6.5 (#477)

build: update artifact CLI to v0.6.5 (#477) #838

Workflow file for this run

on: [push]
name: Unit tests
jobs:
unit-testing:
runs-on: windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.22.x
- name: Check out repository code
uses: actions/checkout@v2
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Run tests
env:
SEMAPHORE_CACHE_S3_URL: "http://127.0.0.1:9000"
SEMAPHORE_CACHE_S3_KEY: minioadmin
SEMAPHORE_CACHE_S3_SECRET: minioadmin
SEMAPHORE_TOOLBOX_METRICS_ENABLED: "true"
run: |
New-Item C:\minio -ItemType Directory > $null
Invoke-WebRequest "https://dl.min.io/server/minio/release/windows-amd64/minio.exe" -OutFile C:\minio\minio.exe
New-Item C:\minio\data\semaphore-cache -ItemType Directory > $null
Start-Process C:\minio\minio.exe -ArgumentList 'server','C:\minio\data' -RedirectStandardOutput C:\minio\logs -RedirectStandardError C:\minio\errors
cd cache-cli
gotestsum --format short-verbose --packages="./..." -- -p 1