Skip to content

Commit

Permalink
ci(lint-and-test): Run hugo workflow independently with v3.0.0 tag
Browse files Browse the repository at this point in the history
This workflow is failing with an error File not found /lib/index.js
which, according to the issues on the repo is resolved in version 3.
  • Loading branch information
chris3ware committed Aug 27, 2024
1 parent 563b442 commit 60c2b1d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@
name: Test
on:
workflow_call: {}
pull_request:
types: [opened, synchronize]

# Disable permissions for all available scopes
permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
setup-and-run-hugo:
name:
name: Test
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 20
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
Expand All @@ -30,7 +31,7 @@ jobs:
echo "HUGO_VERSION=${HUGO_VERSION}" >> "${GITHUB_OUTPUT}"
- name: Setup Hugo
uses: peaceiris/actions-hugo@7db63f5e7f65f5c06a64fd56106389606f84a976 #v3.0.0
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: ${{ steps.hugo-version.outputs.HUGO_VERSION }}
extended: true
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ jobs:
- name: Dependency Review
uses: actions/dependency-review-action@4901385134134e04cec5fbe5ddfe3b2c5bd5d976 # v4.0.0

test:
# Job name should be the same as the called workflow name for required status
# check to match. In this case job level `name: Test` matches workflow level
# `name: test` in hugo.yaml
name: Test
needs: [lint]
permissions:
contents: write
uses: ./.github/workflows/hugo.yaml

# test:
# # Job name should be the same as the called workflow name for required status
# # check to match. In this case job level `name: Test` matches workflow level
# # `name: test` in hugo.yaml
# name: Test
# needs: [lint]
# uses: ./.github/workflows/hugo.yaml

0 comments on commit 60c2b1d

Please sign in to comment.