Skip to content

Commit

Permalink
gh pipeline (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysngupta authored Jul 2, 2024
1 parent 8bc1e63 commit a433a5b
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/merge-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Merge Build"

on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
actions: read
contents: read
deployments: read

jobs:
build_and_test:
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

0 comments on commit a433a5b

Please sign in to comment.