Skip to content

Commit

Permalink
Update trigger conditions for various workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Aug 22, 2024
1 parent 6ba29f3 commit f3cdf00
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
paths:
- 'src/**'
- 'test-e2e/**'
- 'package-lock.json'
- '.browserslistrc'
- 'babel.config.json'
- 'public/index.html'
- 'public/**/index.html'
- '.github/workflows/browsers.yml'
- 'playwright.config.ts'
jobs:
test-e2e-playwright:
timeout-minutes: 60
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Build and test

on:
push:
branches:
- master
branches: [ main, master ]

jobs:
build-and-test:
Expand All @@ -21,16 +20,11 @@ jobs:
env:
HUSKY_SKIP_INSTALL: true

- name: Install Playwright Browsers
run: npx playwright install --with-deps
- run: npx playwright install-deps

- name: Build and run all tests
run: |
npm run build
npm run bundlesize
npm run test:unit:coverage
npm run test:e2e
env:
#CI: true
CI_REPO_NAME: ${{ github.event.repository.name }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ on:
pull_request:
paths:
- 'src/scripts/**'
- 'src/*.ts'
- 'src/styles/**'
- 'test/**'
- 'test-e2e/**'
- package-lock.json
- '.browserslistrc'
- '.eslintrc.json'
- '.editorconfig'
- '.prettierrc.json'
- '.stylelintrc.json'

jobs:
lint:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
pull_request:
paths:
- 'src/scripts/**'
- package-lock.json
- 'src/*.ts'
- 'test/**'
- 'package-lock.json'
- '.browserslistrc'
- 'babel.config.json'
- 'vitest.config.ts'

jobs:
test-unit:
Expand Down

0 comments on commit f3cdf00

Please sign in to comment.