Skip to content

Commit

Permalink
Added a CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rajhawaldar committed Oct 6, 2024
1 parent 209a432 commit 2253458
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
[push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4

- name: set up cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: go-${{runner.os}}-${{ hashFiles('go.mod')}}
restore-keys: |
go-${{runner.os}}-
- name: "Set up go lang"
uses: actions/setup-go@v3
with:
go-version: "1.22.*"

- name: Install dependencies
run: go mod download

- name: build applciation
run: go build -v .

0 comments on commit 2253458

Please sign in to comment.