unit icon indicating copy to clipboard operation
unit copied to clipboard

ci: Be more specific when to run the main Unit checks

Open ac000 opened this issue 1 year ago • 3 comments

ci-dev-distro-compiler.yaml already limits itself to running only when relevant things are updated.

ac000 avatar May 17 '24 15:05 ac000

Can we exclude Markdown changes too?

danielledeleo avatar May 17 '24 15:05 danielledeleo

For ci-dev-distro-compiler.yaml I do

    paths:
      - configure
      - 'auto/**'
      - 'src/**'
      - 'test/**'
      - '.github/workflows/ci-dev-distro-compiler.yaml'

I can basically do that here...

ac000 avatar May 17 '24 15:05 ac000

Specify when to run as opposed when not to...

$ git range-diff c40ca24d...d27133c9
1:  c40ca24d ! 1:  d27133c9 ci: Don't run main Unit checks on changes to tools/
    @@ Metadata
     Author: Andrew Clayton <[email protected]>
     
      ## Commit message ##
    -    ci: Don't run main Unit checks on changes to tools/
    -
    -    Also ignore changes to unitctl.yml
    +    ci: Be more specific when to run the main Unit checks
     
         ci-dev-distro-compiler.yaml already limits itself to running only when
         relevant things are updated.
    @@ .github/workflows/ci.yml: name: ci
     -    branches:
     -      - master
     +    branches: master
    -+    paths-ignore:
    -+      - 'tools/**'
    -+      - '.github/workflows/unitctl.yml'
    ++    paths:
    ++      - configure
    ++      - 'auto/**'
    ++      - 'go/**'
    ++      - 'src/**'
    ++      - 'test/**'
    ++      - '.github/workflows/ci.yml'
      
      jobs:
        test:

ac000 avatar May 17 '24 15:05 ac000

Rebased with master..

ac000 avatar May 29 '24 21:05 ac000