Skip to content

Commit

Permalink
Merge pull request #165 from OneBusAway/more-coverage
Browse files Browse the repository at this point in the history
More coverage
  • Loading branch information
aaronbrethorst authored Jan 16, 2025
2 parents 3dbbb38 + ff246a2 commit 5e9e43d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,22 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test
run: npx vitest run --coverage
env:
CI: true

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: ./coverage/lcov.info

- name: Display test results
if: failure()
run: |
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Wayfinder

[![Coverage Status](https://coveralls.io/repos/github/OneBusAway/wayfinder/badge.svg)](https://coveralls.io/github/OneBusAway/wayfinder)

This is the next-generation OneBusAway web application, built on top of [SvelteKit](https://kit.svelte.dev). It is designed to replace the [onebusaway-enterprise-webapp](https://github.com/OneBusAway/onebusaway-application-modules) project. This project is under active development!

## Developing
Expand Down
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export default defineConfig({
coverage: {
provider: 'v8',
reportsDirectory: './coverage',
reporter: ['text', 'html'],
reporter: ['html', 'lcov'],
all: true,
exclude: ['node_modules', 'coverage', '.svelte-kit', 'build']
exclude: ['**/tests', '.svelte-kit', 'build', 'coverage', 'node_modules']
}
}
});

0 comments on commit 5e9e43d

Please sign in to comment.