Skip to content

Commit

Permalink
Merge pull request #97 from TAMULib/sprint-action-96-yaml
Browse files Browse the repository at this point in the history
Issue 96: Replace Travis-CI with GithubActions
  • Loading branch information
kaladay committed Jan 20, 2021
2 parents afeb45d + f38eea0 commit 3be58cb
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 24 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on: [ push, pull_request, workflow_dispatch ]

jobs:
node:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Node Cache"
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json', '**/package-lock.json') }}

- name: "Node Modules Cache"
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package.json', '**/package-lock.json') }}

- name: "Setup Node"
uses: actions/setup-node@v2
with:
node-version: 10

- name: "Install Node"
run: npm install

- name: "Node Tests"
run: npm run test-ci

- name: "Send to Coveralls"
uses: MikeEdgar/github-action@raw_coverage_file
with:
github-token: ${{ secrets.github_token }}
path-to-file: './coverage/coveralls.json'
coverage-format: raw
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ module.exports = function (grunt) {
coveralls: {
options: {
debug: true,
coverageDir: 'coverage/'
coverageDir: 'coverage/',
dryRun: true
}
}

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/TAMULib/ProductManagementUI.svg?branch=master)](https://travis-ci.org/TAMULib/ProductManagementUI)
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/ProductManagementUI/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/ProductManagementUI?branch=master)
[![Build Status](https://github.com/TAMULib/ProjectManagementUI/workflows/Build/badge.svg)](https://github.com/TAMULib/ProjectManagementUI/actions?query=workflow%3ABuild)
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/ProjectManagementUI/badge.svg)](https://coveralls.io/github/TAMULib/ProjectManagementUI)

# Product Management UI
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"scripts": {
"pretest": "npm install",
"postinstall": "grunt",
"test": "karma start karma.conf.js",
"test": "karma start karma.conf.js --single-run --browsers Firefox,ChromeHeadlessNoSandbox",
"test-single-run": "karma start karma.conf.js --single-run",
"test-ci": "karma start karma.conf.js --no-auto-watch --single-run --browsers=Firefox",
"test-ci": "karma start karma.conf.js --no-auto-watch --single-run --browsers=ChromeHeadlessNoSandbox",
"posttest-ci": "grunt coverage",
"preupdate-webdriver": "npm install",
"update-webdriver": "webdriver-manager update",
"preprotractor": "npm run update-webdriver",
Expand Down

0 comments on commit 3be58cb

Please sign in to comment.