Use modulepreload when adding Link header for module scripts #161
Workflow file for this run
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: 'vite-plugin-symfony CI' | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
defaults: | |
run: | |
working-directory: ./src/vite-plugin-symfony | |
jobs: | |
lint: | |
name: Eslint and Tsc | |
strategy: | |
fail-fast: true | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
sparse-checkout: | | |
/pnpm-lock.yaml | |
/src/vite-plugin-symfony | |
sparse-checkout-cone-mode: false | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
- name: 'Install JS dependencies' | |
run: 'pnpm i --frozen-lockfile' | |
- name: 'Eslint' | |
run: 'pnpm run lint:check' | |
- name: 'Tsc' | |
run: 'pnpm run tsc:check' | |
- name: 'Test' | |
run: 'pnpm run test-run' |