File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,16 +2,13 @@ name: build
22
33# This workflow runs if the CI workflow is successful
44on :
5- workflow_run :
6- workflows : ["CI"] # Keep consistent with actual CI workflow name
7- types :
8- - completed
9- branches : [master]
10- workflow_dispatch :
5+ push :
6+ branches : [ master ]
7+ pull_request :
8+ branches : [ master ]
119
1210jobs :
1311 build :
14- if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1512 runs-on : ubuntu-latest
1613 steps :
1714 - name : Checkout code
@@ -22,14 +19,12 @@ jobs:
2219 with :
2320 go-version : 1.24
2421
22+ # Syncs dependencies and builds the project
2523 - name : Build
2624 run : make build
2725
2826 - name : Run tests
2927 run : make test
3028
31- - name : Install
32- run : make install
33-
3429 - name : Clean up
3530 run : make clean
Original file line number Diff line number Diff line change 1313 @echo " Dependencies synced."
1414
1515# Builds the binary
16- build :
16+ build : sync
1717 @echo " Building the application..."
1818 @mkdir -p $(BUILD_DIR )
1919 @go build -o $(BUILD_DIR ) /$(BINARY_NAME ) $(CMD_PATH )
You can’t perform that action at this time.
0 commit comments