Bump postcss from 8.4.20 to 8.4.31 #275
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: Tests | |
on: | |
push: | |
branches: [main] | |
paths: | |
- .github/workflows/tests.yml | |
- package.json | |
- pnpm-lock.yaml | |
- src/** | |
- test/** | |
- tsconfig*.json | |
- vitest.config.ts | |
- wrangler.toml | |
pull_request: | |
branches: [main] | |
# Same paths that are used on push. | |
paths: | |
- .github/workflows/tests.yml | |
- package.json | |
- pnpm-lock.yaml | |
- src/** | |
- test/** | |
- tsconfig*.json | |
- vitest.config.ts | |
- wrangler.toml | |
workflow_dispatch: | |
jobs: | |
vitest: | |
name: Test with Vitest | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
# Don't run for some dependabot PRs. | |
# Particularly, things which should not affect test outputs. | |
# Ex. @vitest/ui, ESLint-related stuff, husky. | |
if: | | |
!( | |
github.event_name == 'pull_request' && | |
github.actor == 'dependabot[bot]' && | |
( | |
contains(github.head_ref, 'dependabot/npm_and_yarn/typescript-eslint') || | |
contains(github.head_ref, 'dependabot/npm_and_yarn/vitest/ui') || | |
contains(github.head_ref, 'dependabot/npm_and_yarn/husky') || | |
contains(github.head_ref, 'dependabot/npm_and_yarn/concurrently') || | |
contains(github.head_ref, 'dependabot/npm_and_yarn/eslint') || | |
contains(github.head_ref, 'dependabot/npm_and_yarn/lint-staged') || | |
contains(github.head_ref, 'dependabot/npm_and_yarn/is-ci') | |
) | |
) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- name: Run Vitest | |
run: npm test -- --coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |