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

[CI] Adds golangci-lint run for open PRs #28

Merged
merged 1 commit into from
Sep 30, 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
49 changes: 6 additions & 43 deletions .github/workflows/mesheryctl-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ on:
branches:
- "master"
paths:
- "mesheryctl/**"
- "cmd/**"
- "internal/**"
pull_request:
branches:
- "master"
paths:
- "mesheryctl/**"
- "cmd/**"
- "internal/**"
workflow_dispatch:
inputs:
logLevel:
Expand All @@ -34,8 +36,8 @@ jobs:
working-directory: mesheryctl
args: --timeout 10m --verbose
skip-cache: true
mesheryctl_build:
name: Mesheryctl build & release
build:
name: Build
if: github.repository == 'meshery/helm-kanvas-snapshot'
runs-on: macos-latest
needs: [golangci]
Expand Down Expand Up @@ -63,42 +65,3 @@ jobs:
with:
version: latest
args: release --snapshot --skip-publish --clean
mesheryctl_docs:
if: "always() && github.event_name != 'pull_request' && github.repository == 'meshery/meshery' "
runs-on: ubuntu-22.04
steps:
- name: Skip if needed
run: |
echo "this is it ${{ needs.SkipIfNeeded.outputs.skipdocupdate }} "
if [ "${{github.event_name }}" == "push" ];then
echo "version=edge" >> $GITHUB_ENV
fi
if [ "${{github.event_name }}" == "release" ];then
echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
fi
- uses: actions/checkout@v4
with:
repository: meshery/meshery
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "1.21"
check-latest: "true"
- name: Run script 📜
run: |
cd mesheryctl
make docs
- name: Pull changes from remote
run: git pull origin master

- name: Commit ✅
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: docs
commit_user_name: l5io
commit_user_email: ci@layer5.io
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit_options: "--signoff"
commit_message: "[Docs] Update mesheryctl docs"
Loading