Skip to content

Commit

Permalink
ci(dep-review): Enabled dependency review for pull requests (#159)
Browse files Browse the repository at this point in the history
Closes #158
  • Loading branch information
thomaswinkler authored Sep 12, 2024
1 parent ee07e21 commit 11a2d1f
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 28 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/cypress.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Lint

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Review
name: PR Auto Commit Review

on:
pull_request:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/pr_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'PR Review'
on:
pull_request:
branches:
- main
- develop

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4

- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
deny-licenses: LGPL-2.0+, GPL-1.0+, AGPL-1.0, AGPL-3.0 # https://spdx.org/licenses/
18 changes: 18 additions & 0 deletions .github/workflows/jest.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,21 @@ jobs:

- name: Run Unit tests
run: npm run jest

cypress:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Run Cypress tests
run: npm run cypress

0 comments on commit 11a2d1f

Please sign in to comment.