From 2da01652f27a3963a0fd2316732b3c0296ab41d5 Mon Sep 17 00:00:00 2001 From: Lam Tran Date: Fri, 4 Nov 2022 11:42:54 +0700 Subject: [PATCH] chore: add ci using github actions Signed-off-by: Lam Tran --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d71ef70 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI + +on: + pull_request: + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-go@v3 + with: + go-version-file: 'go.mod' + check-latest: true + + - run: | + go vet ./... + go test ./... --cover