Skip to content

Commit

Permalink
Add GitHub Actions CI workflow
Browse files Browse the repository at this point in the history
- Created a new GitHub Actions workflow for CI.
- The workflow runs on every push to the main branch.
- It sets up Go, checks out the code, gets dependencies, builds the project, and runs tests.

Signed-off-by: Daniel Hu <[email protected]>
  • Loading branch information
daniel-hutao committed Jul 24, 2023
1 parent 758b86d commit d75ea66
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches:
- main

jobs:
build-and-test:
runs-on: ubuntu-latest

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

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: go get -v -t -d ./...

- name: Build
run: go build -v ./...

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

0 comments on commit d75ea66

Please sign in to comment.