Skip to content

Commit

Permalink
ci: update github actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Oct 20, 2023
1 parent 697d5ca commit bc034c7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 26 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test-cov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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

- 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

- run: pnpm ci
- run: pnpm 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.

0 comments on commit bc034c7

Please sign in to comment.