Skip to content

Commit

Permalink
Opam Dependency Submission
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Dec 7, 2023
1 parent 0dd756a commit d0d1944
Show file tree
Hide file tree
Showing 29 changed files with 123,357 additions and 81,228 deletions.
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

0 comments on commit d0d1944

Please sign in to comment.