Skip to content

Commit

Permalink
Adds 'ci' justfile target.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Oct 26, 2023
1 parent 7216dc0 commit ba734ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/positron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@ 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:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: just positron install
- run: just positron lint
- run: just positron test
- run: just positron ci
12 changes: 11 additions & 1 deletion extensions/positron/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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:
Expand Down

0 comments on commit ba734ee

Please sign in to comment.