Skip to content

Commit

Permalink
Merge pull request #897 from MuckRock/888-workflows
Browse files Browse the repository at this point in the history
Consolidate test workflows and point to main branch
  • Loading branch information
eyeseast authored Nov 26, 2024
2 parents f3d2632 + 2cfce4e commit 43da90d
Show file tree
Hide file tree
Showing 8 changed files with 197 additions and 267 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/coverage.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# this workflow still refers to the legacy codebase
# tests need to be updated before this is useful again
name: Playwright Tests

on:
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/sveltekit.yml

This file was deleted.

16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Unit tests

on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]

jobs:
test:
unit-test:
runs-on: ubuntu-latest

steps:
Expand All @@ -20,18 +17,19 @@ jobs:
with:
node-version: "20.x"
- run: npm ci

- run: npm run build
env:
NODE_ENV: production
- run: npm test -- --run
- run: npm run test:coverage
- name: Report Coverage
uses: davelosert/vitest-coverage-report-action@v2

check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
Expand Down
Loading

0 comments on commit 43da90d

Please sign in to comment.