Skip to content

Commit

Permalink
fix: pub get at the start of the github action
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Nov 27, 2023
1 parent 04b90f4 commit 685cd8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ 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 All @@ -81,6 +80,9 @@ async function executeScriptPreRun() {

async function run() {
try {
// Install dependencies
await runInWorkspace('dart', ['pub', 'get'])

// Run a script before the action (only if configured)
await executeScriptPreRun()

Expand Down

0 comments on commit 685cd8b

Please sign in to comment.