check for clean working dir

This commit is contained in:
Joost Jager 2023-05-14 11:33:09 +02:00
parent 55dc72fc08
commit b9617b3b2e
No known key found for this signature in database
GPG key ID: B9A26449A5528325
2 changed files with 9 additions and 2 deletions

View file

@ -51,10 +51,17 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '19.x'
node-version: '19.6.0'
- run: yarn
working-directory: ./web
- run: yarn check-lint
working-directory: ./web
- run: yarn check-types
working-directory: ./web
- run: yarn build-export # Build frontend
working-directory: ./web
- run: | # Check for clean working dir
if ! git diff --exit-code; then
exit 1
fi

View file

@ -1,5 +1,5 @@
# Install dependencies only when needed
FROM node:lts-alpine AS build_frontend
FROM node:19.6.0-alpine AS build_frontend
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app