Skip to content

Update actions/checkout action to v4.1.6 #74

Update actions/checkout action to v4.1.6

Update actions/checkout action to v4.1.6 #74

Workflow file for this run

name: Unit Test
on:
push:
branches:
- release
- master
tags:
- v**
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.6
- name: Set up Golang
uses: actions/setup-go@v5.0.1
with:
go-version: 1.22
cache: true
- name: Execute Unit Tests
run: go test -coverprofile coverage.out ./... && go tool cover -func coverage.out -o coverage.txt && go tool cover -html=coverage.out -o coverage.html
env:
IS_CICD: true
- name: Upload Test Results
uses: actions/upload-artifact@v4
with:
name: test-results
path: coverage.html