fix(func): use fixed-length look-behind in FunC function definitions … #389
This file contains hidden or 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: Unit tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| HUSKY: 0 | |
| jobs: | |
| tests: | |
| name: Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - windows-latest | |
| - ubuntu-latest | |
| - macos-latest | |
| steps: | |
| - name: Fetch Sources | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Enable Corepack | |
| if: matrix.os == 'windows-latest' | |
| run: corepack enable --install-directory 'C:\npm\prefix' | |
| - name: Enable Corepack | |
| if: matrix.os != 'windows-latest' | |
| run: corepack enable | |
| - name: Setup Node.js 22.x | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 22.x | |
| cache: "yarn" | |
| - name: Install dependencies | |
| env: | |
| YARN_ENABLE_HARDENED_MODE: false | |
| run: yarn install --immutable | |
| - name: Build Extension | |
| run: yarn build | |
| - name: Run unit tests | |
| run: yarn test |