-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (42 loc) · 1.04 KB
/
main-ci.yml
File metadata and controls
47 lines (42 loc) · 1.04 KB
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
41
42
43
44
45
46
47
name: Main CI Pipeline
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
permissions:
contents: write
pull-requests: write
checks: write
statuses: write
concurrency:
group: main-ci-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check-changes:
runs-on: ubuntu-latest
outputs:
code_changes: ${{ steps.changes.outputs.code_changes }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
fetch-depth: 0
- name: Check for file changes
uses: dorny/paths-filter@v3
id: changes
with:
base: ${{ github.base_ref || github.ref_name }}
filters: |
code_changes:
- '*'
- '**/*'
# run-tests:
# name: Run Tests
# needs: check-changes
# if: needs.check-changes.outputs.code_changes == 'true'
# uses: ./.github/workflows/run-tests.yml
check-style:
name: Style Check
uses: ./.github/workflows/check-style.yml