Skip to content

Commit

Permalink
Adding test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-org committed Jul 8, 2022
1 parent 0024dd3 commit dd2b6fd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '10'

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint

- name: Run test
run: npm run test

- name: Run build
run: npm run build

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ github.workspace }}/coverage/lcov.info

0 comments on commit dd2b6fd

Please sign in to comment.