Created
September 5, 2025 16:14
-
-
Save brynary/3ab986b9dd67333e724f18d4b3dfc1a0 to your computer and use it in GitHub Desktop.
GitHub Actions workflow for coverage upload to Qlty Cloud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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