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.

Revisions

  1. brynary created this gist Sep 5, 2025.
    36 changes: 36 additions & 0 deletions workflow.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    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