Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to new build system #3

Merged
merged 14 commits into from
Oct 24, 2023
45 changes: 45 additions & 0 deletions .github/workflows/test-cov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will do a clean installation 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: Test

on: ["push", "pull_request"]

jobs:
build:
name: Generate coverage report
runs-on: ubuntu-latest
steps:

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6

- uses: actions/checkout@v3
with:
repository: biothings/biothings_explorer
ref: ${{ steps.branch-name.outputs.current_branch }}

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: pnpm install, generate coverage report
run: |
pnpm run clone
pnpm run git checkout ${{ steps.branch-name.outputs.current_branch }}
pnpm i
pnpm --filter node-expansion test-cov

- name: Send coverage report to codecov for visualization
uses: codecov/codecov-action@v3
with:
# working-directory: ./packages/@biothings-explorer/bte-trapi
files: ./coverage/lcov.info
verbose: true
26 changes: 0 additions & 26 deletions .github/workflows/test.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,7 @@ dist
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
.pnp.*

# Built output
built
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Module for expanding terms to children.
## Install

```
npm i @biothings-explorer/node-expansion
pnpm i @biothings-explorer/node-expansion
```

## Usage
Expand Down Expand Up @@ -61,4 +61,4 @@ console.log(getDescendants(['GO:0022010', 'DOID:0060524', 'DOID:4'], recursive=f
```
node download.js
```
- downloads, converts, and parses all the owl files listed in the config file
- downloads, converts, and parses all the owl files listed in the config file
Loading