Skip to content

Commit 2f3b9dc

Browse files
committed
Replaced Travis-CI with Github workflow
1 parent 7d7b234 commit 2f3b9dc

File tree

2 files changed

+39
-11
lines changed

2 files changed

+39
-11
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests / Code Coverage
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
environment: ci
7+
strategy:
8+
matrix:
9+
node-version: ['20.x', '21.x']
10+
python-version: ['3.9', '3.10', '3.11']
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
# Python environment
15+
- name: Setup Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install Coveralls binary
20+
run: curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz -C .
21+
- name: Install pip dependencies
22+
run: pip install semgrep
23+
24+
# Node.js environment
25+
- name: Setup Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- name: Install NPM dependencies
30+
run: npm ci
31+
- name: Run ESLint
32+
run: npm run lint
33+
- name: Run Mocha
34+
run: npm run test-all
35+
36+
#- name: Run Coveralls
37+
# env:
38+
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
39+
# run: npm run coverage

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)