Skip to content

Commit

Permalink
ci: add unit test and other steps
Browse files Browse the repository at this point in the history
  • Loading branch information
anilmisirlioglu committed Feb 23, 2023
1 parent fbc8a7b commit 9581502
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Table Parser CI
on:
push:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Ensure gofmt
run: test -z "$(gofmt -s -d .)"

- name: Ensure go.mod is already tidied
run: go mod tidy

- name: Run unit tests
run: go test ./...

0 comments on commit 9581502

Please sign in to comment.