From ba734ee0fc974c262bd87636f83a6a8192beec4b Mon Sep 17 00:00:00 2001 From: tdstein Date: Thu, 26 Oct 2023 14:05:28 -0400 Subject: [PATCH] Adds 'ci' justfile target. --- .github/workflows/positron.yaml | 8 ++------ extensions/positron/justfile | 12 +++++++++++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/positron.yaml b/.github/workflows/positron.yaml index 4e47647d2..e8d202109 100644 --- a/.github/workflows/positron.yaml +++ b/.github/workflows/positron.yaml @@ -18,9 +18,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18.x - - run: just positron install - - run: just positron lint - - run: just positron test + - run: just positron ci docker: runs-on: ubuntu-latest steps: @@ -28,6 +26,4 @@ jobs: with: fetch-depth: 0 - uses: ./.github/actions/setup - - run: just positron install - - run: just positron lint - - run: just positron test + - run: just positron ci diff --git a/extensions/positron/justfile b/extensions/positron/justfile index 40efc51aa..e0fae0c1d 100644 --- a/extensions/positron/justfile +++ b/extensions/positron/justfile @@ -12,12 +12,14 @@ _with_debug := if _debug == "true" { "" } -default: +# Executes continuous integration workflow (i.e., this is what GitHub Actions uses) +ci: #!/usr/bin/env bash set -eou pipefail {{ _with_debug }} just install + just lint just test # Deletes ephemeral project files (i.e., cleans the project). @@ -28,6 +30,14 @@ clean: rm -rf node_modules +default: + #!/usr/bin/env bash + set -eou pipefail + {{ _with_debug }} + + just install + just test + # Install dependencies install: