File tree Expand file tree Collapse file tree 5 files changed +59
-23
lines changed
packages/sdk-components-animation Expand file tree Collapse file tree 5 files changed +59
-23
lines changed Original file line number Diff line number Diff line change
1
+ name : CI setup
2
+
3
+ description : |
4
+ Sets up the CI environment for the project.
5
+
6
+ inputs :
7
+ ref :
8
+ description : " The ref to checkout"
9
+ required : false
10
+ default : ${{ github.event.pull_request.head.sha || github.sha }}
11
+ submodules-ssh-key :
12
+ description : " The SSH key to private submodules to use for the checkout"
13
+ required : false
14
+
15
+ runs :
16
+ using : " composite"
17
+
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ with :
21
+ ref : ${{ inputs.ref }}
22
+ submodules : ${{ inputs.submodules-ssh-key && 'recursive' || false }}
23
+ ssh-key : ${{ inputs.submodules-ssh-key }}
24
+
25
+ - name : Try checkout submodules to the same branch as main repo
26
+ if : ${{ inputs.submodules-ssh-key }}
27
+ run : |
28
+ git submodule foreach '
29
+ BRANCH=$(git -C $toplevel rev-parse --abbrev-ref HEAD);
30
+ if git ls-remote --exit-code --heads origin "$BRANCH" > /dev/null; then
31
+ git checkout "$BRANCH" && git pull origin "$BRANCH";
32
+ fi;'
33
+ shell : bash
34
+
35
+ - name : Show readme
36
+ run : |
37
+ cat ./packages/sdk-components-animation/private-src/README.md
38
+ shell : bash
Original file line number Diff line number Diff line change 30
30
BUILDER_HOST : ${{ inputs.builder-host }}
31
31
32
32
steps :
33
- - uses : actions/checkout@v4
33
+ - uses : ./.github/ actions/checkout
34
34
with :
35
- ref : ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
35
+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
36
+ submodules-ssh-key : ${{ secrets.PRIVATE_GITHUB_DEPLOY_TOKEN }}
36
37
37
38
- uses : ./.github/actions/ci-setup
38
39
Original file line number Diff line number Diff line change 25
25
runs-on : ubuntu-24.04-arm
26
26
27
27
steps :
28
- - uses : actions/checkout@v4
28
+ - uses : ./.github/ actions/checkout
29
29
with :
30
- ref : ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
30
+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
31
31
32
32
- uses : ./.github/actions/ci-setup
33
33
@@ -49,13 +49,22 @@ jobs:
49
49
- run : pnpm --filter=@webstudio-is/prisma-client build
50
50
- run : pnpm -r typecheck
51
51
52
+ - uses : ./.github/actions/checkout
53
+ with :
54
+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
55
+ submodules-ssh-key : ${{ secrets.PRIVATE_GITHUB_DEPLOY_TOKEN }}
56
+
57
+ - run : |
58
+ pnpm -r --filter='sdk-components-animation' typecheck
59
+
52
60
check-size :
53
61
runs-on : ubuntu-latest
54
62
55
63
steps :
56
- - uses : actions/checkout@v4
64
+ - uses : ./.github/ actions/checkout
57
65
with :
58
- ref : ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
66
+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
67
+ submodules-ssh-key : ${{ secrets.PRIVATE_GITHUB_DEPLOY_TOKEN }}
59
68
60
69
- uses : ./.github/actions/ci-setup
61
70
Original file line number Diff line number Diff line change @@ -36,25 +36,13 @@ jobs:
36
36
runs-on : ubuntu-latest
37
37
38
38
steps :
39
- - uses : actions/checkout@v4
39
+ - uses : ./.github/ actions/checkout
40
40
with :
41
- ref : ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
42
- submodules : recursive
43
- ssh-key : ${{ secrets.PRIVATE_GITHUB_DEPLOY_TOKEN }}
44
-
45
- - name : Try checkout submodules to the same branch as main repo
46
- run : |
47
- git submodule foreach '
48
- BRANCH=$(git -C $toplevel rev-parse --abbrev-ref HEAD);
49
- if git ls-remote --exit-code --heads origin "$BRANCH" > /dev/null; then
50
- git checkout "$BRANCH" && git pull origin "$BRANCH";
51
- fi;'
52
-
53
- - name : Show readme
54
- run : |
55
- cat ./packages/sdk-components-animation/private-src/README.md
41
+ ref : ${{ github.sha }}
42
+ submodules-ssh-key : ${{ secrets.PRIVATE_GITHUB_DEPLOY_TOKEN }}
56
43
57
44
- uses : pnpm/action-setup@v4
45
+
58
46
- uses : actions/setup-node@v4
59
47
with :
60
48
node-version : 20
You can’t perform that action at this time.
0 commit comments