Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Laban254 committed Oct 21, 2024
1 parent e1a3483 commit 742b93f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install Dependencies
run: go mod tidy

- name: Run Tests
run: go test ./... -v

- name: Build
run: go build -o ./tmp/main ./cmd/main.go

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: build-output
path: ./tmp/main

0 comments on commit 742b93f

Please sign in to comment.