Skip to content

Commit

Permalink
Run CI on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Jan 8, 2021
1 parent 9feaec0 commit 916c3d2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 9 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/continuous-integration.yml
@@ -0,0 +1,40 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
frontend-tests:
name: "Tests: Frontend"
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '12', '13', '14' ]
steps:

- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- run: npm ci

- run: npm run coverage

- run: cat ./coverage/lcov.info | npx coveralls .
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
COVERALLS_SERVICE_NUMBER: ${{ github.run_id }}
CI_PULL_REQUEST: ${{ github.event.number }}
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

0 comments on commit 916c3d2

Please sign in to comment.