Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to github pipelines #1625

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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