Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak CI #8

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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