feat: prevent xss attacks #117
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: | |
- 'main' | |
pull_request: | |
jobs: | |
css: | |
name: CSS | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Tools | |
uses: ./.github/actions/install-tools | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Test | |
run: pnpm test:css | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Tools | |
uses: ./.github/actions/install-tools | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Test | |
run: pnpm test:format | |
js: | |
name: JS | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Tools | |
uses: ./.github/actions/install-tools | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Test | |
run: pnpm test:js | |
spelling: | |
name: Spelling | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Tools | |
uses: ./.github/actions/install-tools | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Test | |
run: pnpm test:spelling | |
svelte: | |
name: Svelte | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Tools | |
uses: ./.github/actions/install-tools | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Test | |
run: pnpm test:svelte | |
types: | |
name: Types | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Tools | |
uses: ./.github/actions/install-tools | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Test | |
run: pnpm test:types | |
unit: | |
name: Unit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Tools | |
uses: ./.github/actions/install-tools | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Test | |
run: pnpm test:unit | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |