Переглянути джерело

run type checks also for companion and add files to docker (#4688)

* run type checks also for companion

* add docker build to PRs

* add missing checkout

* try to copy everything

* try to fix issue

* Update .github/workflows/companion.yml

* Update .dockerignore
Mikael Finstad 1 рік тому
батько
коміт
889653ebc6
3 змінених файлів з 6 додано та 3 видалено
  1. 3 0
      .dockerignore
  2. 2 0
      .github/workflows/companion.yml
  3. 1 3
      Dockerfile

+ 3 - 0
.dockerignore

@@ -2,3 +2,6 @@
 .git
 website
 assets
+private
+e2e
+.env

+ 2 - 0
.github/workflows/companion.yml

@@ -46,4 +46,6 @@ jobs:
         run: corepack yarn workspaces focus @uppy/companion
       - name: Run tests
         run: corepack yarn run test:companion
+      - name: Run type checks in focused workspace
+        run: corepack yarn run build:companion
 

+ 1 - 3
Dockerfile

@@ -5,9 +5,7 @@ RUN if [ "$(uname -m)" == "aarch64" ]; then mkdir -p /usr/local/sbin/ && ln -s /
 
 WORKDIR /app
 
-COPY package.json .yarnrc.yml /app/
-COPY .yarn /app/.yarn
-COPY packages/@uppy/companion /app/packages/@uppy/companion
+COPY . /app/
 
 RUN apk --update add  --virtual native-dep \
   make gcc g++ python3 libgcc libstdc++ git && \