Skip to content

Commit

Permalink
Setup github actions using go-build
Browse files Browse the repository at this point in the history
Signed-off-by: Varanasi Venkata Bhaskaram <[email protected]>
  • Loading branch information
bhaskaramVaranasi authored Jun 3, 2024
1 parent f971a00 commit 679157c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/go-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,27 @@ run-name: ${{ github.actor }} runs build
on: [push]
jobs:
build-k8s-athenz-syncer:
runs-on: ubuntu-latest
runs-on: golang:1.22
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Setup Go 1.22.x
uses: actions/setup-go@v5
with:
# Semantic version range syntax or exact version of Go
go-version: '1.22.x'
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Run tests
run: go test -v -race ./...
- name: Print diff
run: diff -u <(echo -n) <(gofmt -d .)
- name: Go vet
run: go vet ./...
- name: Go build
run: go build -v -race ./...
- run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit 679157c

Please sign in to comment.