Skip to content

Commit

Permalink
Merge pull request #8 from ocaml/ci-tweaks
Browse files Browse the repository at this point in the history
Tweak CI
  • Loading branch information
hannesm authored Jan 13, 2025
2 parents 04de824 + 88ff5f5 commit a19ff7a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
pull_request:
paths:
- '**opam'
push:
paths:
- '**opam'

jobs:
lint:
Expand All @@ -31,13 +28,12 @@ jobs:
ocaml-compiler: 5

- name: Install opam-ci-check
run: opam pin opam-ci-check https://github.com/shonfeder/opam-repo-ci.git#411/archive-lint
run: opam pin opam-ci-check https://github.com/ocurrent/opam-repo-ci.git#live

# Get the names of the packages being added to the archive, and feed these
# to opam-ci-check
- name: Lint newly archived packages
run: |
git diff --name-only origin/main packages \
| sed 's:.*/\(.*\)/opam:\1:' \
| xargs --max-lines=1 --max-procs=4 opam exec -- opam-ci-check lint -r . --checks=archive-repo \
| grep "Error in"
| xargs --max-lines=1 --max-procs=4 opam exec -- opam-ci-check lint -r . --checks=archive-repo --quiet

0 comments on commit a19ff7a

Please sign in to comment.