Skip to content

Commit

Permalink
change trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysngupta committed Jul 2, 2024
1 parent b8c9562 commit 6911ba5
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions .github/workflows/merge-build.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,60 @@
# on:
# push:
# branches:
# - master
# - release/*
# pull_request:
# branches:
# - master
# - release/*

name: "Merge Build"
on: [push]

on:
merge_group:
types: [checks_requested]
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
actions: read
contents: read
deployments: read

jobs:
build:
runs-on: ubuntu-latest

timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Go workspace
run: |
shopt -s extglob
shopt -s dotglob
shell: bash

- name: Install Helm
uses: azure/[email protected]
with:
version: v3.11.0

- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.19.2'

- name: Go and Helm lint check
run: make lint-all

- name: Go vet
run: make vet-all

- name: Get dependencies and build
run: make build

- name: Run unit tests with code coverage
run: make unittest

- name: Publish test results
if: always()
uses: actions/[email protected]
with:
name: test-results
path: ${{ github.workspace }}/**/report.xml

- name: Publish code coverage results
if: always()
uses: actions/[email protected]
with:
name: code-coverage
path: coverage.xml

- name: Publish build artifacts
uses: actions/[email protected]
with:
name: drop
path: ${{ github.workspace }}/artifact


path: ${{ github.workspace }}/artifact

0 comments on commit 6911ba5

Please sign in to comment.