Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koreanddinghwan authored Nov 16, 2023
1 parent 725be5f commit cb1143b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build
run: go build -v $PWD/cmd/api-server/api-server $PWD/cmd/api-server/main.go

# - name: Test
# run: go test -v ./...

- name: kubectl CLI
uses: imajeetyadav/kubectl@v1
with:
version: 1.28.4

- name: Apply Version
run: kubectl apply -f ""

0 comments on commit cb1143b

Please sign in to comment.