feat: add #no_lint and #no_test commit hooks
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Has been skipped
CI/CD Pipeline / Run Tests (push) Has been skipped
CI/CD Pipeline / Build & Push Images (push) Successful in 28s
CI/CD Pipeline / Deploy (prod) (push) Has been skipped
CI/CD Pipeline / Deploy (dev) (push) Failing after 1s
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Has been skipped
CI/CD Pipeline / Run Tests (push) Has been skipped
CI/CD Pipeline / Build & Push Images (push) Successful in 28s
CI/CD Pipeline / Deploy (prod) (push) Has been skipped
CI/CD Pipeline / Deploy (dev) (push) Failing after 1s
Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
@@ -21,6 +21,7 @@ jobs:
|
||||
lint:
|
||||
name: Code Quality Checks
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !contains(github.event.head_commit.message, '#no_lint') }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -63,6 +64,7 @@ jobs:
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !contains(github.event.head_commit.message, '#no_test') }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -108,7 +110,10 @@ jobs:
|
||||
always() &&
|
||||
github.event_name == 'push' &&
|
||||
(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') &&
|
||||
(github.ref == 'refs/heads/dev' || (needs.lint.result == 'success' && needs.test.result == 'success'))
|
||||
(github.ref == 'refs/heads/dev' || (
|
||||
(needs.lint.result == 'success' || needs.lint.result == 'skipped') &&
|
||||
(needs.test.result == 'success' || needs.test.result == 'skipped')
|
||||
))
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
Reference in New Issue
Block a user