Skip to content

coveralls links to .ts source, not .js output #978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/continuous-integration.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail

# Install deps
npm install

# Build
npm run build

# Lint
npm rm tslint

# Test
npm install "$matrix_typescript"
npm run test-cov

# Generate coverage report
npm run lcov
17 changes: 10 additions & 7 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Continuous Integration
on: [push]
jobs:
test:
name: Test ${{ matrix.flavor }} ${{ matrix.node }} ${{ matrix.typescript }}
name: Test Node v${{ matrix.node }}, ${{ matrix.typescript }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavor: [1, 2, 3, 4]
include:
- flavor: 1
node: 6
node: 8
typescript: typescript@latest
- flavor: 2
node: 13
Expand All @@ -30,8 +30,11 @@ jobs:
with:
node-version: ${{ matrix.node }}
# lint, build, test
- run: npm install
- run: npm run build
- run: npm rm tslint
- run: npm install ${{ matrix.typescript }}
- run: npm run test-cov
- name: Build, Lint, and Test
run: matrix_typescript="${{ matrix.typescript }}" ./.github/workflows/continuous-integration.sh
# Report coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./.nyc_output/lcov.info
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ npm-debug.log
dist/
tsconfig.schema.json
tsconfig.schemastore-schema.json
/.nyc_output
Loading