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

Opam Dependency Submission #555

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# the linguist-vendored/linguist-generated attribute suppresses changes being
# displayed by default in pull requests.
/analysis/dist/*.js -diff linguist-generated
/analysis/dist/*.txt -diff linguist-generated
/dist/**/*.js -diff linguist-generated
/dist/**/*.txt -diff linguist-generated
/lint-doc/dist/*.js -diff linguist-generated
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to

## [unreleased]

### Added

- Add opam support for the Dependency submission API.

## [2.1.8]

### Fixed
Expand Down
27 changes: 27 additions & 0 deletions analysis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# analysis

## Usage

### Example workflow

```yml
jobs:
opam-dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml 5.1
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "5.1"
dune-cache: true

- name: Opam Dependency Submission
uses: ocaml/setup-ocaml/analysis@v2
```

## Inputs

Consult the [action.yml](./action.yml) for inputs.
14 changes: 14 additions & 0 deletions analysis/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Analysis
description: Calculates dependencies for a opam build-target and submits the list to the Dependency Submission API
author: Sora Morimoto
branding:
icon: package
color: orange
inputs:
token:
description: DO NOT SET THIS.
required: false
default: ${{ github.token }}
runs:
using: node20
main: dist/index.js
294 changes: 294 additions & 0 deletions analysis/dist/LICENSE.txt

Large diffs are not rendered by default.

Loading