Skip to content

Commit

Permalink
Merge pull request #61 from KPMP/KPMP-5193_add-build-action
Browse files Browse the repository at this point in the history
added a workflow
  • Loading branch information
rlreamy authored Apr 26, 2024
2 parents 64b0617 + d697030 commit ca0c847
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm ci
- run: npm run build --if-present
- run: npm test
4 changes: 1 addition & 3 deletions src/components/PackageDashboard/PackageTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import ReactTable from 'react-table';
import ReactGA from 'react-ga';
import PropTypes from 'prop-types';
import Moment from 'moment';
import { Row, Col, Button } from 'reactstrap';
import { getStateDisplayText } from './stateDisplayHelper';
import { Row, Col } from 'reactstrap';
import { faDownload } from '@fortawesome/free-solid-svg-icons';
import { CSVLink } from 'react-csv';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
Expand All @@ -15,7 +14,6 @@ const PACKAGE_TYPE_LABEL = 'Package Type';
const SUBMITTER_LABEL = 'Submitter';
const TIS_NAME_LABEL = 'TIS Name';
const DATE_SUBMITTED_LABEL = 'Date Submitted';
const PACKAGE_STATE_LABEL = 'Package State';
const SUBJECT_ID_LABEL = 'Subject Id';
const GLOBUS_LINK_LABEL = 'Globus Link';
const MOVE_PACKAGE_FILES_LABEL = 'Move Files to DLU';
Expand Down
3 changes: 0 additions & 3 deletions src/components/PackageDashboard/packageReducer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import actionNames from '../../actions/actionNames';

export const packages = (state = [], action) => {
let newState = [];

switch (action.type) {
default:
Expand Down

0 comments on commit ca0c847

Please sign in to comment.