Skip to content

Update pr-flow.yml (#326) #28

Update pr-flow.yml (#326)

Update pr-flow.yml (#326) #28

Workflow file for this run

name: main-flow
on:
push:
tags:
- v*
branches:
- master
- main
workflow_dispatch: {}
jobs:
lint:
name: run golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@v5
test:
name: run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build & test
run: make ci-test
- name: Upload log files
uses: actions/upload-artifact@v4
if: always()
with:
name: test-report.log
path: |
**/*.log
if-no-files-found: error