Skip to content

Instantly share code, notes, and snippets.

@brynary
Created September 5, 2025 16:14
Show Gist options
  • Select an option

  • Save brynary/3ab986b9dd67333e724f18d4b3dfc1a0 to your computer and use it in GitHub Desktop.

Select an option

Save brynary/3ab986b9dd67333e724f18d4b3dfc1a0 to your computer and use it in GitHub Desktop.
GitHub Actions workflow for coverage upload to Qlty Cloud
name: Main
on:
push:
permissions:
actions: write
contents: read
jobs:
build:
name: Node test and upload coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Install qlty CLI
shell: bash
run: "curl https://qlty.sh/install.sh | bash"
- name: Upload coverage to qlty
shell: bash
env:
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
run: qlty coverage publish --token "$QLTY_COVERAGE_TOKEN" coverage/lcov.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment