Skip to content

Commit

Permalink
chore(ci): fix elm caching (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r authored Feb 2, 2022
1 parent 7c262d1 commit 18c1f3b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:

env:
NODE_VERSION: '16.13.2'
ELM_HOME: '${GITHUB_WORKSPACE}'
CI: 1

# pipeline to execute
Expand Down Expand Up @@ -65,6 +64,12 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.elm
key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }}
restore-keys: |
${{ runner.os }}-elm-v3-
- uses: actions/cache@v2
with:
path: ~/.npm
Expand Down Expand Up @@ -142,6 +147,12 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.elm
key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }}
restore-keys: |
${{ runner.os }}-elm-v3-
- uses: actions/cache@v2
with:
path: ~/.npm
Expand Down Expand Up @@ -180,6 +191,12 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.elm
key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }}
restore-keys: |
${{ runner.os }}-elm-v3-
- uses: actions/cache@v2
with:
path: ~/.npm
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.elm
key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }}
restore-keys: |
${{ runner.os }}-elm-v3-
- uses: actions/cache@v2
with:
path: ~/.npm
Expand Down

0 comments on commit 18c1f3b

Please sign in to comment.