diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 00000000..d5d86aa1 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,31 @@ +name: tests + +on: + push: + branches: [master, main] + tags-ignore: ['**'] + paths-ignore: ['**.md'] + pull_request: + paths-ignore: ['**.md'] + +jobs: # Docs: + gitleaks: + name: Gitleaks + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: {fetch-depth: 0} + + - uses: zricethezav/gitleaks-action@v1 # Action page: + + golangci-lint: + name: Golang-CI (lint) + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Run linter + uses: golangci/golangci-lint-action@v2 # Action page: + with: + version: v1.42 # without patch version + only-new-issues: false # show only new issues if it's a pull request