Skip to content

Commit 54748eb

Browse files
committed
update Makefile and build.yml
Signed-off-by: Ayush <mail@ayuch.dev>
1 parent 584409d commit 54748eb

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@ name: build
22

33
# This workflow runs if the CI workflow is successful
44
on:
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

1210
jobs:
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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sync:
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)

0 commit comments

Comments
 (0)