Skip to content

Update test_ws_codecov.yml #824

Update test_ws_codecov.yml

Update test_ws_codecov.yml #824

on: ["push", "pull_request"]
name: Test in workspace
jobs:
test-coverage:
name: Generate coverage report
runs-on: ubuntu-latest
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6
- name: Checkout to specific branch
uses: actions/checkout@v3
id: specific-checkout
continue-on-error: true
with:
repository: biothings/biothings_explorer
ref: ${{ steps.branch-name.outputs.current_branch }}
- name: Checkout to main if above failed
if: steps.specific-checkout.outcome = 'failure'

Check failure on line 25 in .github/workflows/test_ws_codecov.yml

View workflow run for this annotation

GitHub Actions / Test in workspace

Invalid workflow file

The workflow is not valid. .github/workflows/test_ws_codecov.yml (Line: 25, Col: 11): Unexpected symbol: '='. Located at position 33 within expression: steps.specific-checkout.outcome = 'failure'
uses: actions/checkout@v3
with:
repository: biothings/biothings_explorer
ref: main
- 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 query_graph_handler test-cov
- name: Send coverage report to codecov for visualization
uses: codecov/codecov-action@v3
with:
working-directory: ./packages/@biothings-explorer/query_graph_handler
files: ./coverage/lcov.info
verbose: true