diff --git a/.github/actions/prepare-backend/action.yml b/.github/actions/prepare-backend/action.yml index 285248c97b86bd6a871c46ef8d0939cfefab7fa9..e80b886879799752248780584233ce6fba65b02b 100644 --- a/.github/actions/prepare-backend/action.yml +++ b/.github/actions/prepare-backend/action.yml @@ -24,8 +24,13 @@ runs: run: | curl -O https://download.clojure.org/install/linux-install-${{ inputs.clojure-version }}.sh && sudo bash ./linux-install-${{ inputs.clojure-version }}.sh + - name: Check to see if dependencies should be cached + if: ${{ contains(github.event.head_commit.message, '[ci nocache]') }} + run: echo "Commit message includes [ci nocache]; dependencies will NOT be cached" + shell: bash - name: Get M2 cache uses: actions/cache@v2 + if: ${{ !contains(github.event.head_commit.message, '[ci nocache]') }} with: path: | ~/.m2 diff --git a/.github/actions/prepare-cypress/action.yml b/.github/actions/prepare-cypress/action.yml index 85cfc8d0c34da6846b936eb47074d32c1490a7b1..904fad634ea0ac215fcfaa7ef93629b6de0cdb2a 100644 --- a/.github/actions/prepare-cypress/action.yml +++ b/.github/actions/prepare-cypress/action.yml @@ -2,8 +2,13 @@ name: Prepare cypress environment runs: using: "composite" steps: + - name: Check to see if dependencies should be cached + if: ${{ contains(github.event.head_commit.message, '[ci nocache]') }} + run: echo "Commit message includes [ci nocache]; dependencies will NOT be cached" + shell: bash - name: Get Cypress cache uses: actions/cache@v2 + if: ${{ !contains(github.event.head_commit.message, '[ci nocache]') }} with: path: ~/.cache/Cypress key: ${{ runner.os }}-Cypress-${{ hashFiles('**/yarn.lock') }} diff --git a/.github/actions/prepare-frontend/action.yml b/.github/actions/prepare-frontend/action.yml index 0274118a131aea291d27ad635fc31be376715ca3..3ce335bc916542c7d0eba699e9e6d4a90ae498f3 100644 --- a/.github/actions/prepare-frontend/action.yml +++ b/.github/actions/prepare-frontend/action.yml @@ -7,13 +7,21 @@ runs: with: node-version: 14.x cache: 'yarn' + - name: Check to see if dependencies should be cached + if: ${{ contains(github.event.head_commit.message, '[ci nocache]') }} + run: | + echo "Commit message includes [ci nocache]; dependencies will NOT be cached" + yarn cache clean + shell: bash - name: Get M2 cache uses: actions/cache@v2 + if: ${{ !contains(github.event.head_commit.message, '[ci nocache]') }} with: path: ~/.m2 key: ${{ runner.os }}-cljs-${{ hashFiles('**/shadow-cljs.edn') }} - name: Get node_modules cache uses: actions/cache@v2 + if: ${{ !contains(github.event.head_commit.message, '[ci nocache]') }} with: path: node_modules key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}