Skip to content

change trigger

change trigger #8

Workflow file for this run

# on:
# push:
# branches:
# - master
# - release/*
# pull_request:
# branches:
# - master
# - release/*
name: "Merge Build"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go workspace
run: |
mkdir -p $GOBIN
mkdir -p $GOPATH/pkg
mkdir -p $modulePath
shopt -s extglob
shopt -s dotglob
mv !(gopath) $modulePath
echo "$GOBIN" >> $GITHUB_PATH
echo "$GOROOT/bin" >> $GITHUB_PATH
shell: bash
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.11.0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19.2'
- name: Go and Helm lint check
run: make lint-all
working-directory: $modulePath
- name: Go vet
run: make vet-all
working-directory: $modulePath
- name: Get dependencies and build
run: make build
working-directory: $modulePath
- name: Run unit tests with code coverage
run: make unittest
working-directory: $modulePath
- name: Publish test results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-results
path: ${{ github.workspace }}/**/report.xml
- name: Publish code coverage results
if: always()
uses: actions/upload-artifact@v3
with:
name: code-coverage
path: $modulePath/coverage.xml
- name: Copy files
run: |
mkdir -p ${{ github.workspace }}/artifact
cp -r $modulePath/** ${{ github.workspace }}/artifact
- name: Publish build artifacts
uses: actions/upload-artifact@v3
with:
name: drop
path: ${{ github.workspace }}/artifact