Skip to content

Commit

Permalink
Merge pull request #11 from ItinerisLtd/fix-ci-build
Browse files Browse the repository at this point in the history
fix(ci): failing Dependabot PR builds
  • Loading branch information
codepuncher authored Jul 18, 2023
2 parents 7a4785d + 45dbf8a commit ac6f206
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci-theme.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# yamllint disable-line rule:document-start
name: ci-theme

# yamllint disable-line rule:truthy
on:
workflow_call:
inputs:
Expand All @@ -26,6 +28,7 @@ on:

jobs:
check-theme-changes:
# yamllint disable-line rule:line-length
if: ${{ inputs.THEME_NAME != '' && inputs.THEME_NAME != 'xxxTHEME_NAMExxx' }}
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -55,16 +58,21 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.NODE_VERSION }}
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Restore Yarn cache
id: yarncache
run: echo "dir=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/cache@v3
with:
path: ${{ steps.yarncache.outputs.dir }}
# yamllint disable-line rule:line-length
key: ${{ runner.os }}-${{ inputs.NODE_VERSION }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-${{ inputs.NODE_VERSION }}-yarn-

Expand All @@ -73,6 +81,7 @@ jobs:
run: yarn install --frozen-lockfile
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build and compile assets
run: ${{ inputs.NPM_BUILD_CMD }}
Expand Down Expand Up @@ -107,11 +116,13 @@ jobs:
- uses: actions/cache@v3
with:
path: ${{ steps.composercache.outputs.dir }}
# yamllint disable-line rule:line-length
key: ${{ runner.os }}-${{ inputs.PHP_VERSION }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-${{ inputs.PHP_VERSION }}-composer-

- if: ${{ env.PRIVATE_PACKAGIST_TOKEN != '' }}
name: Setup Composer Private Packagist authentication
# yamllint disable-line rule:line-length
run: composer config --global --auth http-basic.repo.packagist.com itineris ${{ env.PRIVATE_PACKAGIST_TOKEN }}

- name: Install Composer dependencies
Expand Down

0 comments on commit ac6f206

Please sign in to comment.