diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..d207b180 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.go text eol=lf diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4d907f5..2fda57f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,3 +54,9 @@ jobs: - name: make test run: | make test + + - name: headless test + uses: GabrielBB/xvfb-action@v1 + with: + # this is running only on Ubuntu: /usr/bin/xvfb-run --auto-servernum go test -v -race ./... + run: go test -v -race ./... diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 00000000..e1c28194 --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,21 @@ +name: golangci-lint +on: + push: + tags: + - v* + branches: + - master + - main + pull_request: +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version + version: 'latest' + go-version: 1.16