Skip to content

Fix fetch depth and git history #4

Fix fetch depth and git history

Fix fetch depth and git history #4

Workflow file for this run

# Adapted from https://github.com/ocaml/setup-ocaml
#
name: ci
# kick
# The lints should be only run when packages are added
on:
push:
# pull_request:
# paths:
# - packages/
# push:
# paths:
# - packages/
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
with:
# We need to fetch the history so we can compare against master
fetch-depth: 0
- name: Install GNU prallel
run: sudo apt-get install -y parallel
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
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
# 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 | sed 's:.*/\(.*\)/opam:\1:' | parallel opam exec -- opam-ci-check lint -r . --checks=archive-repo