Skip to content

Commit

Permalink
fix: move pub get to the script instead of the dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Nov 27, 2023
1 parent 387a1d6 commit eead807
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit eead807

Please sign in to comment.