mirror of
https://github.com/storytold/craft-common-actions.git
synced 2026-11-16 23:44:48 +00:00
ci: run the unit tests when any workflow or action they cover changes
test-freebsd.yml is the only workflow that runs tests/, but its path filter still lists the FreeBSD-era files. A change to sonarcloud.yml, supply-chain.yml, nix.yml, ast-grep.yml, or to actions such as arch-package, resolve-version, ast-grep or checkout-craft-fonts ran none of their tests: #86 (sonarcloud.yml and the README) and #90 (sonarcloud.yml) merged without test_sonarcloud.py running. Match every workflow, action and test file, and test that the filter does, with GitHub's glob rules.
This commit is contained in:
1 parent
86bc2ce420
commit
160d46a16b
2 files changed
+46
-16
No files matched your search
@@ -1,28 +1,17 @@
|
||||
name: Shared FreeBSD workflow tests
|
||||
|
||||
# The suite covers every workflow and action, not only FreeBSD, so a change to any of them runs it.
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/freebsd.yml
|
||||
- .github/workflows/release.yml
|
||||
- .github/workflows/gate.yml
|
||||
- actions/freebsd-cargo-cache/**
|
||||
- actions/checkout-craft-i18n/**
|
||||
- .github/workflows/windows-arm64.yml
|
||||
- .github/workflows/test-freebsd.yml
|
||||
- actions/install-apt-packages/**
|
||||
- .github/workflows/**
|
||||
- actions/**
|
||||
- tests/**
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- .github/workflows/freebsd.yml
|
||||
- .github/workflows/release.yml
|
||||
- .github/workflows/gate.yml
|
||||
- actions/freebsd-cargo-cache/**
|
||||
- actions/checkout-craft-i18n/**
|
||||
- .github/workflows/windows-arm64.yml
|
||||
- .github/workflows/test-freebsd.yml
|
||||
- actions/install-apt-packages/**
|
||||
- .github/workflows/**
|
||||
- actions/**
|
||||
- tests/**
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
Reference in new issue
Block a user