Skip to content

add ImageResizeFunc error pattern to test #37

add ImageResizeFunc error pattern to test

add ImageResizeFunc error pattern to test #37

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
go_version_file: go.mod
fail_on_error: true
filter_mode: nofilter
golangci_lint_flags: --timeout=10m
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Mod Download
run: go mod download
- name: Build
run: go build
test:
name: Test
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run Test
run: go test ./... -v