* 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>
38 lines
912 B
YAML
38 lines
912 B
YAML
name: Pull Request
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- next
|
|
|
|
jobs:
|
|
check:
|
|
# The type of runner that the job will run on
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: [ 18, 20 ]
|
|
|
|
name: Node ${{ matrix.node }} PR
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 8
|
|
- name: Use Node.js ${{ matrix.node }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: 'pnpm'
|
|
- run: pnpm install
|
|
name: install dependencies
|
|
- run: pnpm lint
|
|
name: linting
|
|
- 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 |