diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c837614e7..faaa61117 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,6 @@ on: env: NODE_VERSION: '16.13.2' - ELM_HOME: '${GITHUB_WORKSPACE}' CI: 1 # pipeline to execute @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ecb910010..f9f19c656 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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