Skip to content

Commit

Permalink
Merge pull request #42 from AikidoSec/patch-workflows
Browse files Browse the repository at this point in the history
Lint code in separate workflow
  • Loading branch information
hansott authored Feb 27, 2024
2 parents 9ab6667 + 7c11719 commit d309203
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
id: mongodb_benchmark
run: cd benchmarks/mongodb && node benchmark.js
- name: Run SQL Injection Benchmark
id: sql_injection_bencmark
id: sql_injection_benchmark
run: cd benchmarks/sql-injection && node benchmark.js
16 changes: 16 additions & 0 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint code
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: make install
- run: make lint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint code and run tests
name: Unit tests
on: push
jobs:
build:
Expand Down Expand Up @@ -29,7 +29,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: make install
- run: make lint
- run: make test-ci
- name: "Upload coverage"
uses: codecov/[email protected]
Expand Down

0 comments on commit d309203

Please sign in to comment.