Skip to content

Commit

Permalink
Merge pull request #28 from meshery:leecalcote/ci/golangci-lint
Browse files Browse the repository at this point in the history
[CI] Adds golangci-lint run for open PRs
  • Loading branch information
leecalcote authored Sep 30, 2024
2 parents 349b905 + 861b850 commit 2ec3542
Showing 1 changed file with 6 additions and 43 deletions.
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"

0 comments on commit 2ec3542

Please sign in to comment.