diff --git a/Dockerfile b/Dockerfile index 6d19935..2f54572 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,11 +20,6 @@ ENV PATH="/usr/lib/dart/bin:${PATH}" COPY package*.json ./ RUN npm install -# Install Dart dependencies -COPY pubspec.lock ./ -COPY pubspec.yaml ./ -RUN dart pub get - # Copy the rest of your action's code COPY . . diff --git a/index.js b/index.js index c151308..15a2527 100644 --- a/index.js +++ b/index.js @@ -60,6 +60,7 @@ async function configurePubDevToken() { } async function analyzeDartProject() { + await runInWorkspace('dart', ['pub', 'get']) await runInWorkspace('dart', ['analyze']) await runInWorkspace('dart', ['format', '--set-exit-if-changed', '.']) await runInWorkspace('dart', ['pub', 'publish', '--dry-run'])