Skip to content

Commit

Permalink
Merge 4358f12 into 44bf77b
Browse files Browse the repository at this point in the history
  • Loading branch information
jessie-codes committed Sep 12, 2020
2 parents 44bf77b + 4358f12 commit b7fe5b5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
@@ -1,6 +1,6 @@
name: Test & Lint
# This workflow is triggered on pushes to the repository.
on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -10,11 +10,26 @@ jobs:
node: [ '10', '12' ]
name: Node ${{ matrix.node }}
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
- run: npm run lint
- name: Test
env:
COVERALLS_SERVICE_NAME: GitHub Actions CI
COVERALLS_GIT_BRANCH: ${{ steps.extract_branch.outputs.branch }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
npm ci
npm test
npm run lint
npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
@@ -1,7 +1,8 @@
name: Node.js Package
on:
release:
types: [created]
push:
tags:
- v*.*.**
jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b7fe5b5

Please sign in to comment.