Skip to content

Commit d7102b5

Browse files
committed
ci: add GHA check for .travis.yml (macOS matrix #35)
Validates YAML parse, osx matrix presence, and that macOS skips the Homebrew OpenCV path that disabled Travis in #35.
1 parent 26bfe67 commit d7102b5

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Validate Travis config
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.travis.yml'
7+
- '.github/workflows/validate-travis.yml'
8+
push:
9+
branches:
10+
- master
11+
- main
12+
paths:
13+
- '.travis.yml'
14+
15+
jobs:
16+
yaml:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Parse .travis.yml
21+
run: ruby -e 'require "yaml"; YAML.load_file(".travis.yml"); puts "travis.yml: yaml ok"'
22+
- name: Ensure macOS matrix is enabled
23+
run: |
24+
grep -q '^[[:space:]]*- os: osx' .travis.yml
25+
echo "macOS matrix entry present"
26+
- name: Ensure macOS skips broken Homebrew OpenCV bootstrap
27+
run: |
28+
awk '/TRAVIS_OS_NAME.*osx/,/fi/' .travis.yml | grep -q 'true'
29+
echo "macOS before_install uses no-op (no opencv brew install)"

0 commit comments

Comments
 (0)