| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5fbc69d commit 081b211
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | 1 | --- | |
| 2 | - ############################# | ||
| 3 | - ############################# | ||
| 4 | - ## CI/CT/CD GitHub Actions ## | ||
| 5 | - ############################# | ||
| 6 | - ############################# | ||
| 7 | - name: Source Linter | ||
| 2 | + ######################## | ||
| 3 | + ######################## | ||
| 4 | + ## Source Code Linter ## | ||
| 5 | + ######################## | ||
| 6 | + ######################## | ||
| 7 | + name: Source Code Linter | ||
| 8 | 8 | ||
| 9 | 9 | # | |
| 10 | 10 | # Documentation: | |
@@ -14,60 +14,39 @@ name: Source Linter | |||
| 14 | 14 | ############################# | |
| 15 | 15 | # Start the job on all push # | |
| 16 | 16 | ############################# | |
| 17 | - on: ['push'] | ||
| 17 | + # Dont need to run on push to master | ||
| 18 | + on: | ||
| 19 | + push: | ||
| 20 | + branches-ignore: | ||
| 21 | + - 'master' | ||
| 18 | 22 | ||
| 19 | 23 | ############### | |
| 20 | 24 | # Set the Job # | |
| 21 | 25 | ############### | |
| 22 | 26 | jobs: | |
| 23 | 27 | build: | |
| 24 | 28 | # Name the Job | |
| 25 | - name: Source linter | ||
| 29 | + name: Source Code Linter | ||
| 30 | + | ||
| 26 | 31 | # Set the agent to run on | |
| 27 | 32 | runs-on: ubuntu-latest | |
| 33 | + | ||
| 28 | 34 | ################## | |
| 29 | 35 | # Load all steps # | |
| 30 | 36 | ################## | |
| 31 | 37 | steps: | |
| 38 | + | ||
| 32 | 39 | ########################## | |
| 33 | 40 | # Checkout the code base # | |
| 34 | 41 | ########################## | |
| 35 | 42 | - name: Checkout Code | |
| 36 | - uses: actions/checkout@master | ||
| 37 | - | ||
| 38 | - ##################### | ||
| 39 | - # Install Ruby Libs # | ||
| 40 | - ##################### | ||
| 41 | - - name: Set up Ruby | ||
| 42 | - uses: actions/setup-ruby@master | ||
| 43 | - with: | ||
| 44 | - ruby-version: 2.6.x | ||
| 45 | - | ||
| 46 | - #################### | ||
| 47 | - # Install NPM Libs # | ||
| 48 | - #################### | ||
| 49 | - - name: Setup NPM | ||
| 50 | - uses: actions/setup-node@master | ||
| 51 | - with: | ||
| 52 | - node-version: 10.x | ||
| 53 | - | ||
| 54 | - ################################# | ||
| 55 | - # Install all base dependancies # | ||
| 56 | - ################################# | ||
| 57 | - - name: Install Dependencies | ||
| 58 | - shell: bash | ||
| 59 | - run: ./.automation/install-deps.sh | ||
| 60 | - | ||
| 61 | - ############################################# | ||
| 62 | - # Run the markup and markdown linter script # | ||
| 63 | - ############################################# | ||
| 64 | - - name: Run Markup and Markdown Linter | ||
| 65 | - shell: bash | ||
| 66 | - run: ./.automation/markup-markdown-linter.sh | ||
| 67 | - | ||
| 68 | - ################################### | ||
| 69 | - # Run the scripting linter script # | ||
| 70 | - ################################### | ||
| 71 | - - name: Run Scripting Linter | ||
| 72 | - shell: bash | ||
| 73 | - run: ./.automation/scripting-linter.sh | ||
| 43 | + uses: actions/checkout@v2 | ||
| 44 | + | ||
| 45 | + ################################ | ||
| 46 | + # Run Linter against code base # | ||
| 47 | + ################################ | ||
| 48 | + - name: Lint Code Base | ||
| 49 | + uses: github/super-linter@v3 | ||
| 50 | + env: | ||
| 51 | + VALIDATE_ALL_CODEBASE: false | ||
| 52 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments