Skip to content

Commit d379438

Browse files
authored
feat: use CI scripts (#61)
* feat: use CI scripts * update test action * update test action * remove local scope creation from test action * update test scope * fix argument sent to CLI * fix WS errors * enable spinners * enable spinners * add PR labels * update test data * bump Bit version * replace envs
1 parent a03d9b3 commit d379438

458 files changed

Lines changed: 6530 additions & 12606 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/labels.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Test Bit Pull Request
22
on:
3-
workflow_dispatch: # Manual trigger
4-
# pull_request:
5-
# types:
6-
# - opened
7-
# - synchronize
3+
workflow_dispatch:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
88
permissions:
99
pull-requests: write
1010
jobs:
@@ -20,13 +20,13 @@ jobs:
2020
uses: bit-tasks/init@v2
2121
with:
2222
ws-dir: 'test-data'
23-
- name: Creating a bare scope
24-
run: mkdir bit-tasks.test-scope && cd bit-tasks.test-scope && bit init --bare
25-
- name: Start the server and test
26-
run: cd bit-tasks.test-scope && bit start --port 4000 --no-browser & sleep 200 && curl http://localhost:4000
27-
- name: Add remote scope
28-
run: cd test-data && bit remote add http://localhost:4000
2923
- name: Bit Pull Request
30-
uses: bit-tasks/pull-request@main
24+
uses: bit-tasks/pull-request@use-ci-scripts
25+
with:
26+
version-labels: true
27+
version-labels-color-major: "f0a09f"
28+
version-labels-color-minor: "f0e8bd"
29+
version-labels-color-patch: "c2e0c6"
30+
clear-labels: true
3131
- name: Bit Lanes
3232
run: cd test-data && bit lane list --details

.github/workflows/with-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
- name: Add remote scope
3434
run: cd test-data && bit remote add http://localhost:4000
3535
- name: Bit Pull Request
36-
uses: bit-tasks/pull-request@main
36+
uses: bit-tasks/pull-request@use-ci-scripts
3737
- name: Bit Lanes
3838
run: cd test-data && bit lane list --details

action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ inputs:
2626
description: "Remove all Bit labels from the Pull Request"
2727
required: false
2828
default: "false"
29+
build:
30+
description: "Build components in the Action Runner."
31+
required: false
32+
default: "false"
33+
strict:
34+
description: "Fail on warnings as well as errors."
35+
required: false
36+
default: "false"
2937
runs:
3038
using: 'node20'
3139
main: 'dist/index.js'
32-

0 commit comments

Comments
 (0)