Skip to content

Commit ed0cb89

Browse files
committed
Replaced Travis-CI with Github workflow
1 parent 3363a1c commit ed0cb89

File tree

4 files changed

+40
-24
lines changed

4 files changed

+40
-24
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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: ['18.x', '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
35+
- name: Run Coveralls
36+
env:
37+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
38+
run: npm run coverage

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.eslintrc
2+
.github
23
.jsdocrc
34
.nyc_output
4-
.travis.yml
55
.vscode
66
ISSUE_TEMPLATE.md
77
package.*

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# L³ router
22

3-
[![npm version](https://badge.fury.io/js/@lambda-lambda-lambda%2Frouter.svg)](https://badge.fury.io/js/@lambda-lambda-lambda%2Frouter) [![](https://img.shields.io/npm/dm/@lambda-lambda-lambda/router.svg)](https://www.npmjs.com/package/@lambda-lambda-lambda/router) [![Build Status](https://api.travis-ci.com/lambda-lambda-lambda/router.svg?branch=master)](https://app.travis-ci.com/github/lambda-lambda-lambda/router) [![Coverage](https://coveralls.io/repos/lambda-lambda-lambda/router/badge.svg?branch=master)](https://coveralls.io/r/lambda-lambda-lambda/router?branch=master) [![Install size](https://packagephobia.com/badge?p=@lambda-lambda-lambda/router)](https://packagephobia.com/result?p=@lambda-lambda-lambda/router)
3+
[![npm version](https://badge.fury.io/js/@lambda-lambda-lambda%2Frouter.svg)](https://badge.fury.io/js/@lambda-lambda-lambda%2Frouter) [![](https://img.shields.io/npm/dm/@lambda-lambda-lambda/router.svg)](https://www.npmjs.com/package/@lambda-lambda-lambda/router) [![Build Status](https://img.shields.io/github/actions/workflow/status/lambda-lambda-lambda/router/.github%2Fworkflows%2Fci.yml)](https://app.travis-ci.com/github/lambda-lambda-lambda/router) [![Coverage](https://coveralls.io/repos/lambda-lambda-lambda/router/badge.svg?branch=master)](https://coveralls.io/r/lambda-lambda-lambda/router?branch=master) [![Install size](https://packagephobia.com/badge?p=@lambda-lambda-lambda/router)](https://packagephobia.com/result?p=@lambda-lambda-lambda/router)
44

55
AWS [CloudFront Lambda@Edge](https://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html) serverless application router.
66

0 commit comments

Comments
 (0)