Skip to content

Commit

Permalink
ci: add basic ci to catch broken configs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshTheWanderer committed Jul 10, 2024
1 parent 40cea6c commit e95cc98
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,25 @@
---
pull_request_rules:
- name: Merge dependabot PRs when all checks pass
conditions:
- and:
- author~=^dependabot(|-preview)\[bot\]$
- check-success=SonarCloud Code Analysis
- check-success~=^security/snyk
- check-success=🧹 Lint
- label!=wontfix
actions:
review:
type: APPROVE
message: Automatically approving dependabot
merge:
method: merge
- name: Merge Snyk PRs when all checks pass
conditions:
- and:
- title~=^\[Snyk\]
- head~=^snyk-fix
- check-success~=^security/snyk
- check-success=SonarCloud Code Analysis
- label!=wontfix
actions:
review:
type: APPROVE
message: Automatically approving snyk
merge:
method: merge
- name: Merge when all checks pass and the PR has been approved
conditions:
- and:
- check-success~=^security/snyk
- check-success=SonarCloud Code Analysis
- check-success=🧹 Lint
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
actions:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 👮 CI
on: pull_request
env:
HUSKY: 0
permissions:
contents: read
jobs:
lint:
strategy:
matrix:
version: [18, 20, 21]
name: 🧹 Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
cache: npm
- run: npm ci --no-audit --no-fund --prefer-offline
- run: npx --no-install eslint .

0 comments on commit e95cc98

Please sign in to comment.