.github/workflows/test.yml
name: Test
on:
workflow_call:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test-ts:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup node environment
uses: actions/setup-node@v4
with:
node-version: 16.14.0
- name: Fetch dependencies
run: |
yarn
- name: Test typescript
run: |
yarn coverage
- name: Upload coverage
uses: codecov/codecov-action@v3
if: github.actor != 'dependabot[bot]'
with:
files: ./coverage/lcov.info
verbose: true