Skip to content

Commit

Permalink
Re-use github actions on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Aug 23, 2024
1 parent f0c8a05 commit 214cb23
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 64 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ name: End-to-end tests (playwright)
on:
push:
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'
pull_request:
paths:
- 'src/**'
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/build-and-test.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/bundlesize.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: Bundle size checks

on:
push:
branches: [ main, master ]
paths:
- '.github/workflows/bundlesize.yml'
- 'src/scripts/**'
- 'src/styles/**'
- 'package-lock.json'
- '.browserslistrc'
pull_request:
paths:
- '.github/workflows/bundlesize.yml'
- 'src/scripts/**'
- 'src/styles/**'
- 'package-lock.json'
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
name: Code linting

on:
push:
branches: [ main, master ]
paths:
- '.github/workflows/lint.yml'
- 'src/scripts/**'
- 'src/*.ts'
- 'src/styles/**'
- 'test/**'
- 'test-e2e/**'
- 'package-lock.json'
- '.browserslistrc'
- '.eslintrc.json'
- '.editorconfig'
- '.prettierrc.json'
- '.stylelintrc.json'
pull_request:
paths:
- '.github/workflows/lint.yml'
- 'src/scripts/**'
- 'src/*.ts'
- 'src/styles/**'
- 'test/**'
- 'test-e2e/**'
- package-lock.json
- 'package-lock.json'
- '.browserslistrc'
- '.eslintrc.json'
- '.editorconfig'
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
name: Unit tests

on:
push:
branches: [ main, master ]
paths:
- '.github/workflows/unit-tests.yml'
- 'src/scripts/**'
- 'src/*.ts'
- 'test/**'
- 'package-lock.json'
- '.browserslistrc'
- 'babel.config.json'
- 'vitest.config.ts'
pull_request:
paths:
- '.github/workflows/unit-tests.yml'
- 'src/scripts/**'
- 'src/*.ts'
- 'test/**'
Expand Down

0 comments on commit 214cb23

Please sign in to comment.