ci: Cache node_modules
Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
parent
9ffde479da
commit
a24f152ba3
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue