ci: Cache node_modules

Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
Christoph Heiss 2022-10-23 23:06:57 +02:00 committed by Christoph Heiss
parent 9ffde479da
commit a24f152ba3
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7

View file

@ -13,13 +13,19 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 17
- run: npm clean-install
- uses: actions/cache@v3
id: cache-node-modules
with:
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
path: node_modules
- if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm clean-install
- run: npm run lint:scss
- run: npm run build
docker-image:
needs: lint-and-build
runs-on: ubuntu-latest
needs: lint-and-build
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2