diff --git a/.github/ci.yml b/.github/ci.yml new file mode 100644 index 0000000..5c70208 --- /dev/null +++ b/.github/ci.yml @@ -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 ./... \ No newline at end of file