diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6206a21 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.go text eof=lf diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d335bdc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Unit Tests +on: [pull_request] +jobs: + unittest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Golang + uses: actions/setup-go@v3 + with: + go-version: 1.18 + - name: Tests + run: make test + linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Golang + uses: actions/setup-go@v3 + with: + go-version: 1.18 + - name: Golint + uses: golangci/golangci-linter@v3 + with: + version: latest +