Skip to content

Commit

Permalink
Merge pull request #18 from fourTheorem/node16-github-actions
Browse files Browse the repository at this point in the history
Node.js v16 Tests + GitHub actions + Lerna + ESLint improvements
  • Loading branch information
lmammino committed Apr 23, 2021
2 parents 19a5187 + a0eaa79 commit 8230f17
Show file tree
Hide file tree
Showing 28 changed files with 8,080 additions and 10,881 deletions.
34 changes: 0 additions & 34 deletions .circleci/config.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
env: {
es2021: true,
node: true
},
extends: [
'standard'
],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
rules: {
}
}
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12, 14, 16]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}.x
- run: npm ci
- run: npm test
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-node-${{ matrix.node-version }}
parallel: true
path-to-lcov: serverless-plugin/coverage/lcov.info

finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
path-to-lcov: serverless-plugin/coverage/lcov.info
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,4 @@ node_modules/
.serverless/
coverage/
.vscode/
.eslintcache
7 changes: 7 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"packages": [
"serverless-plugin",
"serverless-test-project"
],
"version": "1.0.0-alpha.3"
}

0 comments on commit 8230f17

Please sign in to comment.