This repository has been archived by the owner on May 13, 2024. It is now read-only.
refactor(abilities/page): simplify canAccess #1514
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- beta | |
- main | |
- renovate/** | |
pull_request: | |
branches: | |
- beta | |
- main | |
env: | |
NODE_VERSION: 18 | |
jobs: | |
lint: | |
name: Lint | |
runs-on: [ubuntu-latest] | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
target: [js, hbs] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: ^7.17.1 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Lint ${{ matrix.target }} | |
run: pnpm lint:${{ matrix.target }} | |
test: | |
name: Tests | |
needs: [lint] | |
runs-on: [ubuntu-latest] | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: ^7.17.1 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Run tests | |
run: pnpm test | |
env: | |
COVERAGE: true | |
- name: upload coverage report to codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage/lcov.info |