-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 1.01 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build & test
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
changed: ${{ steps.filter.outputs.changed }}
steps:
- uses: actions/checkout@v3
- name: 🔎 checking for changes
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
changed:
- 'src/Spillgebees.Blazor.RichTextEditor/**'
- 'src/Spillgebees.Blazor.RichTextEditor.Samples/**'
- 'src/Spillgebees.Blazor.RichTextEditor.Tests/**'
build-and-test:
name: build-and-test
permissions:
contents: write
needs: changes
uses: ./.github/workflows/build-test-publish.yml
with:
should-run: ${{ needs.changes.outputs.changed == 'true' }}
should-publish-gh-page: ${{ github.event_name == 'push' && needs.changes.outputs.changed == 'true' }}
gh-page-destination-directory: main