-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Techeer-Hogwarts/SCRUM-152--actions
test: github actions
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # 메인 브렌치에 브랜치 머지 시 자동으로 실행 | ||
pull_request: | ||
branches: | ||
- '**' # 모든 브랜치에 PR 올릴 때 실행 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go 1.23 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23' | ||
run: go version | ||
- name: Show build number | ||
run: echo "Build Number: ${{ github.run_number }}" | ||
- name: Show pull request number | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: echo "PR Number: ${{ github.event.pull_request.number }}" | ||
|