feat: add cache (#2)

* ci: remove main workflow
ci: add pr workflow to branch next

* docs: correct readme
ci: add docker build on release
ci: add lint and test to release flow

* feat: add cache for both memory and redis
refactor: cleanup getAccountability nested promise
refactor: import path for get-auth-providers.ts
docs: document cache options
ci: add redis file to gitignore

* ci: use test:coverage for testing to update pr

---------

Co-authored-by: Krise <krise86@users.noreply.github.com>
This commit is contained in:
Kristoffer
2023-08-02 16:44:07 +02:00
committed by GitHub
parent aea5b84c41
commit 8f8ce1e02b
12 changed files with 284 additions and 97 deletions

View File

@@ -2,7 +2,9 @@ name: Pull Request
on:
pull_request:
branches: [ main ]
branches:
- main
- next
jobs:
check:
@@ -27,8 +29,10 @@ jobs:
name: install dependencies
- run: pnpm lint
name: linting
- run: pnpm test
- run: pnpm test:coverage
name: testing
- run: pnpm build
name: build package
- name: 'Report Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2