Skip to content

Commit

Permalink
Merge 21d7698 into 330deee
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Jan 12, 2021
2 parents 330deee + 21d7698 commit 60408aa
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 25 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Node CI with NPM

on: [push, pull_request]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v2
with:
node-version: 12.x

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Chrome drivers
run: sudo apt-get install xvfb

- name: Install dependencies
run: yarn install

- name: Test CI
run: xvfb-run --auto-servernum yarn test:ci

- name: Coveralls coverage report
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/scholars-angular/lcov.info
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build Status](https://travis-ci.org/vivo-community/scholars-angular.svg?branch=master)](https://travis-ci.org/vivo-community/scholars-angular)
[![Coverage Status](https://coveralls.io/repos/github/vivo-community/scholars-angular/badge.svg?branch=master)](https://coveralls.io/github/vivo-community/scholars-angular?branch=master)
![Node CI with NPM](https://github.com/TAMULib/scholars-angular/workflows/Node%20CI%20with%20NPM/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/scholars-angular/badge.svg?branch=tamu-master)](https://coveralls.io/github/TAMULib/scholars-angular?branch=tamu-master)

# scholars-angular

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"build:ssr": "ng build --prod && ng run scholars-angular:server:production && npm run compress",
"prerender": "ng run scholars-angular:prerender",
"test:coverage": "ng test --no-watch --code-coverage --browsers HeadlessChrome",
"test:report": "cat ./coverage/scholars-angular/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"test:ci": "yarn lint && yarn build:ssr && yarn e2e && yarn test:coverage"
},
"private": false,
Expand Down

0 comments on commit 60408aa

Please sign in to comment.