Skip to content

Commit

Permalink
Update workflows with latest action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
oZakari committed Apr 1, 2024
1 parent 2c41e33 commit e5732ea
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 62 deletions.
105 changes: 52 additions & 53 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,53 @@
---
name: Code Review - Linting & Link Checks

on:
pull_request:
branches:
- main
workflow_dispatch: {}

jobs:
lint:
name: Lint code base
runs-on: ubuntu-latest

steps:

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run github/super-linter
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
# Need to define main branch as default is set to master in super-linter
DEFAULT_BRANCH: main
# Enable setting the status of each individual linter run in the Checks section of a pull request
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The following linter types will be enabled:
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_POWERSHELL: true
VALIDATE_YAML: true
VALIDATE_BASH: true
VALIDATE_EDITORCONFIG: true
FILTER_REGEX_EXCLUDE: ".*docs/themes/hugo-geekdoc/.*"

markdown-link-check:
name: Markdown Link Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@master
with:
fetch-depth: 0

- name: Check links in markdown files
uses: gaurav-nelson/[email protected]
with:
config-file: ".github/linters/mlc_config.json"
use-verbose-mode: "yes"
use-quiet-mode: "yes"
name: Code Review - Linting & Link Checks

on:
pull_request:
branches:
- main
workflow_dispatch: {}

jobs:
lint:
name: Lint code base
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run github/super-linter
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
# Need to define main branch as default is set to master in super-linter
DEFAULT_BRANCH: main
# Enable setting the status of each individual linter run in the Checks section of a pull request
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The following linter types will be enabled:
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_POWERSHELL: true
VALIDATE_YAML: true
VALIDATE_BASH: true
VALIDATE_EDITORCONFIG: true
FILTER_REGEX_EXCLUDE: ".*docs/themes/hugo-geekdoc/.*"

markdown-link-check:
name: Markdown Link Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@main
with:
fetch-depth: 0

- name: Check links in markdown files
uses: gaurav-nelson/[email protected]
with:
config-file: ".github/linters/mlc_config.json"
use-verbose-mode: "yes"
use-quiet-mode: "yes"
9 changes: 6 additions & 3 deletions .github/workflows/hugo-build-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ on:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/hugo-build-pr-check.yml'
- "docs/**"
- "azure-resources/**"
- "azure-specialized-workloads/**"
- "azure-waf/**"
- ".github/workflows/hugo-build-pr-check.yml"
workflow_dispatch: {}

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down Expand Up @@ -44,7 +47,7 @@ jobs:

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v5

- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/hugo-site-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
branches:
- main
paths:
- 'docs/**'
- 'azure-resources/**/recommendations.yaml'
- 'azure-resources/**/*.md'
- "docs/**"
- "azure-resources/**/recommendations.yaml"
- "azure-resources/**/*.md"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: {}
Expand Down Expand Up @@ -54,11 +54,11 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11' # install the python version needed
python-version: "3.11" # install the python version needed

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v5

- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
Expand All @@ -80,7 +80,6 @@ jobs:
with:
path: ./public


# Deployment job
deploy:
environment:
Expand Down

0 comments on commit e5732ea

Please sign in to comment.