Skip to content

fix(deps): update module github.com/stretchr/testify to v1.10.0 #76

fix(deps): update module github.com/stretchr/testify to v1.10.0

fix(deps): update module github.com/stretchr/testify to v1.10.0 #76

Workflow file for this run

---
name: CI
on:
workflow_dispatch:
inputs:
tag:
description: "Use to set tag, default: rolling"
type: string
default: "rolling"
required: false
dry-run:
description: "Do not push image"
type: boolean
default: false
required: false
latest:
description: "Tag latest"
type: boolean
default: false
required: false
workflow_call:
inputs:
tag:
description: "Use to set tag, default: rolling"
type: string
default: "rolling"
required: false
dry-run:
description: "Do not push image"
type: boolean
default: false
required: false
latest:
description: "Tag latest"
type: boolean
default: false
required: false
push:
branches: ["main"]
paths:
- "go.mod"
- "go.sum"
- "*.go"
- "**/*.go"
- "Dockerfile"
pull_request:
branches: ["main"]
merge_group:
branches: ["main"]
jobs:
lint:
uses: heathcliff26/ci/.github/workflows/golang-lint.yaml@main
unit-tests:
uses: heathcliff26/ci/.github/workflows/golang-unit-tests.yaml@main
build-binary:
uses: heathcliff26/ci/.github/workflows/golang-build.yaml@main
needs:
- lint
- unit-tests
strategy:
fail-fast: false
matrix:
include:
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: windows
arch: amd64
- os: windows
arch: arm64
with:
release: "${{ github.event_name == 'pull_request' && 'devel' || inputs.tag == '' && 'rolling' || inputs.tag }}"
goos: "${{ matrix.os }}"
goarch: "${{ matrix.arch }}"
artifact: "bin/simple-fileserver-${{ matrix.os }}-${{ matrix.arch }}*"
artifact-name: "simple-fileserver-${{ matrix.os }}-${{ matrix.arch }}"
cmd: "hack/build.sh simple-fileserver-${{ matrix.os }}-${{ matrix.arch }}"
secrets: inherit
build-image:
uses: heathcliff26/ci/.github/workflows/build-container.yaml@main
needs:
- lint
- unit-tests
permissions:
contents: read
packages: write
with:
dockerfile: Dockerfile
tag: "${{ inputs.tag == '' && 'rolling' || inputs.tag }}"
tags: "${{ inputs.latest == true && 'type=raw,value=latest' || '' }}"
dry-run: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' || inputs.dry-run == 'true' }}
build-args: "RELEASE_VERSION=${{ inputs.tag == '' && 'rolling' || inputs.tag }}"
secrets: inherit