From 76edb2c97cec70d6c26bc523ac8f64c80fb05c37 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 1 Jul 2022 16:27:14 -0700 Subject: Improve CI scripts --- .github/workflows/new.yml | 5 ++++- .github/workflows/old.yml | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/new.yml b/.github/workflows/new.yml index 8c8ebf50..82e7f91e 100644 --- a/.github/workflows/new.yml +++ b/.github/workflows/new.yml @@ -14,7 +14,10 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 - - run: npm install + with: + cache: npm + cache-dependency-path: modern/package-lock.json + - run: npm ci working-directory: modern - run: npm run lint working-directory: modern diff --git a/.github/workflows/old.yml b/.github/workflows/old.yml index 747ddca0..e9b9fb27 100644 --- a/.github/workflows/old.yml +++ b/.github/workflows/old.yml @@ -12,7 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - - run: npm install --ignore-scripts + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + cache: npm + cache-dependency-path: package-lock.json + - run: npm ci --ignore-scripts - run: npm run lint -- cgit v1.2.3