forked from seaweedfs/seaweedfs-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce base linters as pre-commit
- Loading branch information
1 parent
e1caf4c
commit f2021b3
Showing
25 changed files
with
136 additions
and
278 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#name: Make run tests e2e | ||
# | ||
#on: | ||
# pull_request: | ||
# types: | ||
# - opened | ||
# - labeled | ||
# - synchronize | ||
# | ||
#jobs: | ||
# test-e2e: | ||
# name: test-e2e on k8s ${{ matrix.k8s.attribute }} version | ||
# # Pull request has label 'ok-to-test' or the author is a member of the organization | ||
# if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(fromJSON('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.pull_request.author_association) | ||
# strategy: | ||
# matrix: | ||
# k8s: | ||
# - version: v1.28.0 | ||
# attribute: penultimate | ||
# - version: v1.29.0 | ||
# attribute: previous | ||
# - version: default | ||
# attribute: latest | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: actions/checkout@v4.1.7 | ||
# - uses: actions/setup-go@v5.0.1 | ||
# with: | ||
# go-version: 1.22.4 | ||
# - uses: docker/setup-buildx-action@v3.3.0 | ||
# - uses: tale/kubectl-action@v1.4.0 | ||
# with: | ||
# kubectl-version: v1.30.0 | ||
# # Empty kubeconfig file | ||
# base64-kube-config: "YXBpVmVyc2lvbjogdjEKa2luZDogQ29uZmlnCnByZWZlcmVuY2VzOiB7fQo=" | ||
# - run: | | ||
# if [ "${{ matrix.k8s.version }}" = "default" ]; then | ||
# # For latest version use default from Makefile | ||
# make test-e2e | ||
# else | ||
# K8S_VERSION=${{ matrix.k8s.version }} make test-e2e | ||
# fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#name: Make run tests | ||
# | ||
#on: | ||
# pull_request: | ||
# types: | ||
# - opened | ||
# - labeled | ||
# - synchronize | ||
# | ||
#jobs: | ||
# test: | ||
# name: test on k8s ${{ matrix.k8s.attribute }} version | ||
# # Pull request has label 'ok-to-test' or the author is a member of the organization | ||
# if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(fromJSON('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.pull_request.author_association) | ||
# strategy: | ||
# matrix: | ||
# k8s: | ||
# - version: v1.28.0 | ||
# attribute: penultimate | ||
# - version: v1.29.0 | ||
# attribute: previous | ||
# - version: default | ||
# attribute: latest | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: actions/checkout@v4.1.7 | ||
# - uses: actions/setup-go@v5.0.1 | ||
# with: | ||
# go-version: 1.22.4 | ||
# - run: | | ||
# if [ "${{ matrix.k8s.version }}" = "default" ]; then | ||
# # For latest version use default from Makefile | ||
# make test | ||
# else | ||
# K8S_VERSION=${{ matrix.k8s.version }} make test | ||
# fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Pre-commit | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/setup-go@v5.0.1 | ||
with: | ||
go-version: 1.22.4 | ||
- uses: pre-commit/action@v3.0.1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.