Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 }}-cache-node-${{ hashFiles('**/package.json', '**/package-lock.json') }}

- name: "Node Cache Modules"
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-cache-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 (build node-${{ github.run_number }})"
uses: MikeEdgar/github-action@raw_coverage_file
with:
github-token: ${{ secrets.github_token }}
path-to-file: './coverage/coveralls.json'
coverage-format: raw

16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
logs/*
!.gitkeep
.coveralls.yml
coverage/
dist/
node_modules/
bower_components/
coverage
dist
node_modules
bower_components
tmp
.tmp/
.tmp
.project
.DS_Store
.idea
npm-debug.log
.sass-cache/
.sass-cache
app/resources/styles/*
!app/resources/styles/sass/
!app/resources/styles/sass
app/resources/scripts/*
!app/resources/scripts/vendor/
!app/resources/scripts/vendor
app/node_modules
*.log
18 changes: 0 additions & 18 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 @@ -184,7 +184,8 @@ module.exports = function (grunt) {
coveralls: {
options: {
debug: true,
coverageDir: 'coverage/'
coverageDir: 'coverage/',
dryRun: true
}
}

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

# Scanned Document Metadata Assignment Tool UI
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"postinstall": "grunt",
"test": "karma start karma.conf.js",
"test-single-run": "karma start karma.conf.js --single-run",
"test-ci": "karma start karma.conf.js --no-auto-watch --single-run --browsers=Chrome",
"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",
"protractor": "protractor e2e-tests/protractor.conf.js",
"protractor": "protractor e2e/protractor.conf.js",
"stop": "wvr server --stop",
"start": "wvr server -b /magpie --prod --uid magpie-webserver",
"start-dev": "wvr server -b /magpie --uid magpie-webserver"
Expand All @@ -25,7 +26,8 @@
"ng-openseadragon": "1.3.5",
"ng-table": "3.0.1",
"openseadragon": "2.4.1",
"@wvr/core": "2.0.7"
"@wvr/core": "2.0.7",
"webdriver-manager": "^12.1.8"
},
"devDependencies": {
"grunt": "1.0.4",
Expand Down