diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3e9267ed..5b773c6a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,12 @@ updates: - "aelsabbahy" open-pull-requests-limit: 0 + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day: "saturday" + - package-ecosystem: "pip" directory: "/docs" schedule: diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml new file mode 100644 index 00000000..9ec7ec63 --- /dev/null +++ b/.github/workflows/golangci-lint.yaml @@ -0,0 +1,27 @@ +name: Golang ci +on: + # don't build any branch other than master (and prs) when git pushed + pull_request: {} + push: + branches: + - master + - "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/" + +permissions: + contents: read + pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: latest + only-new-issues: true