-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #658 from serverless-heaven/github-actions
Ditch Travis to use GitHub Actions
- Loading branch information
Showing
5 changed files
with
107 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Linter | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- release/* | ||
push: | ||
branches: | ||
- master | ||
- release/* | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
name: ESLint | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install Node.js" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12" | ||
|
||
- name: "Install dependencies" | ||
run: npm ci | ||
|
||
- name: "Lint files" | ||
run: "npm run eslint" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- release/* | ||
push: | ||
branches: | ||
- master | ||
- release/* | ||
|
||
jobs: | ||
mocha: | ||
runs-on: ${{ matrix.os }} | ||
name: Node.js ${{ matrix.node }} on ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- windows-latest | ||
- ubuntu-18.04 | ||
node: | ||
- "10" | ||
- "12" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install Node.js" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "${{ matrix.node }}" | ||
|
||
- name: "Install dependencies" | ||
run: npm ci | ||
|
||
- name: "Run tests" | ||
run: "npm run test" | ||
|
||
- name: "Run tests" | ||
run: "npm run test" | ||
|
||
coverage: | ||
name: "Upload coverage" | ||
runs-on: ubuntu-latest | ||
needs: | ||
- "mocha" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install Node.js" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12" | ||
|
||
- name: "Install dependencies" | ||
run: npm ci | ||
|
||
- name: "Run tests" | ||
run: "npm run test-coverage" | ||
|
||
- name: "Upload to Coveralls" | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.