From 6f63f52e0fee60147150428a7729e3322fb50c2d Mon Sep 17 00:00:00 2001 From: Wagner Santos <7467450+wagoid@users.noreply.github.com> Date: Fri, 12 Feb 2021 16:47:01 -0300 Subject: [PATCH] ci: cache deps when running commitlint --- .github/workflows/commitlint.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index e63dd87..278a00f 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -13,6 +13,14 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '14' + - uses: actions/cache@v2 + with: + path: | + ~/.npm + **/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - run: npm install - uses: ./ id: run_commitlint @@ -30,6 +38,14 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '14' + - uses: actions/cache@v2 + with: + path: | + ~/.npm + **/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - run: npm install - uses: ./ env: