From 889653ebc6015d76b77885a20b2ae410160c0c0b Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sat, 23 Sep 2023 12:56:32 +0800 Subject: [PATCH] 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 --- .dockerignore | 3 +++ .github/workflows/companion.yml | 2 ++ Dockerfile | 4 +--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index ef71f62e07..137589ad02 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,3 +2,6 @@ .git website assets +private +e2e +.env diff --git a/.github/workflows/companion.yml b/.github/workflows/companion.yml index 915ce06e21..94e6841877 100644 --- a/.github/workflows/companion.yml +++ b/.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 diff --git a/Dockerfile b/Dockerfile index 73ee416382..dd2891d375 100644 --- a/Dockerfile +++ b/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 && \