Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Aug 24, 2023
1 parent 69c8cec commit 8144539
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,22 @@ runs:
node-version: ${{ inputs.node }}
cache: 'npm'

- name: Install dependencies
- name: Get NPM cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- uses: actions/cache@v3
name: Restore dependencies
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- if: steps.npm-cache.outputs.cache-hit != 'true'
name: Install dependencies
shell: bash
run: npm ci

Expand Down
19 changes: 19 additions & 0 deletions .github/actions/framework/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,25 @@ runs:
path: .
key: ${{ inputs.cache }}

- name: Get NPM cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- uses: actions/cache@v3
name: Restore dependencies
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- if: steps.npm-cache.outputs.cache-hit != 'true'
name: Install dependencies
shell: bash
run: npm ci

- name: Create application
shell: bash
run: ${{ inputs.install }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ jobs:
name: Gatsby Tests
runs-on: ubuntu-latest

env:
IMPORT_STATEMENT: |
import './../auth0';
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit 8144539

Please sign in to comment.