File tree Expand file tree Collapse file tree 4 files changed +97
-0
lines changed Expand file tree Collapse file tree 4 files changed +97
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Turbo build
2
+ inputs :
3
+ node-version :
4
+ description : Node version
5
+ required : true
6
+ default : 22.x
7
+ runs :
8
+ using : composite
9
+ steps :
10
+ - name : Cache turbo build setup
11
+ uses : actions/cache@v3
12
+ with :
13
+ path : .turbo
14
+ key : ${{ runner.os }}-turbo-${{ inputs.node-version }}-build-${{ github.sha }}
15
+ restore-keys : |
16
+ ${{ runner.os }}-turbo-${{ inputs.node-version }}-build-
17
+ - uses : pnpm/action-setup@v2
18
+ - name : Use Node.js ${{ inputs.node-version }}
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ node-version : ${{ inputs.node-version }}
22
+ cache : pnpm
23
+ - run : pnpm install
24
+ shell : bash
25
+ - run : pnpm turbo build --cache-dir=.turbo
26
+ shell : bash
Original file line number Diff line number Diff line change
1
+ name : Continuous Integration and Deployment
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+
7
+ permissions :
8
+ contents : write
9
+ pages : write
10
+ id-token : write
11
+ pull-requests : write
12
+
13
+ jobs :
14
+ run-ci :
15
+ uses : ./.github/workflows/reusable-ci.yml
16
+
17
+ all :
18
+ needs : [run-ci]
19
+ runs-on : ubuntu-latest
20
+ if : always()
21
+ steps :
22
+ - name : Check job status
23
+ if : contains(needs.*.result, 'failure')
24
+ run : exit 1
25
+ - name : All jobs completed successfully
26
+ if : success()
27
+ run : echo "All jobs completed successfully!"
Original file line number Diff line number Diff line change
1
+ name : Pull Request CI
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ main ]
6
+
7
+ permissions : read-all
8
+
9
+ jobs :
10
+ run-ci :
11
+ uses : ./.github/workflows/reusable-ci.yml
Original file line number Diff line number Diff line change
1
+ name : Reusable CI Workflow
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ upload-artifacts :
7
+ type : boolean
8
+ default : false
9
+ required : false
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ node-version : [22.x]
17
+ steps :
18
+
19
+ - uses : ./.github/actions/turbo-build
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+
23
+ all :
24
+ needs : [build]
25
+ runs-on : ubuntu-latest
26
+ if : always()
27
+ steps :
28
+ - name : Check job status
29
+ if : contains(needs.*.result, 'failure')
30
+ run : exit 1
31
+ - name : All jobs completed successfully
32
+ if : success()
33
+ run : echo "All jobs completed successfully!"
You can’t perform that action at this time.
0 commit comments