Created
September 5, 2025 16:14
-
-
Save brynary/3ab986b9dd67333e724f18d4b3dfc1a0 to your computer and use it in GitHub Desktop.
Revisions
-
brynary created this gist
Sep 5, 2025 .There are no files selected for viewing
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 charactersOriginal 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