Skip to content

Commit

Permalink
implemented initial checker logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvuka1 committed Feb 12, 2024
1 parent 6098cf7 commit 62f6c55
Show file tree
Hide file tree
Showing 12 changed files with 45,389 additions and 777 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,23 @@ jobs:
with:
name: dist
path: dist/

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
uses: ./
with:
openapi-path: ${{ github.workspace }}/__tests__/data/openapi.json
doc-path: ${{ github.workspace }}/__tests__/data/api.md

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
11 changes: 11 additions & 0 deletions __tests__/data/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## doc-check-demo API Documentation

### Available Endpoints

**GET /**

- **Operation ID:** AppController_getHello
- **Description:** A simple endpoint that returns a default message.
- **Parameters:** None
- **Responses:**
- **200:** Returns a successful response with an empty body.
1 change: 1 addition & 0 deletions __tests__/data/openapi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"openapi":"3.0.0","paths":{"/":{"get":{"operationId":"AppController_getHello","parameters":[],"responses":{"200":{"description":""}}}}},"info":{"title":"doc-check-demo","description":"The doc-check-demo API description","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"schemas":{}}}
4 changes: 0 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ inputs:
doc-path:
required: true

outputs:
time:
description: 'Your output description here'

runs:
using: node20
main: dist/index.js
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 62f6c55

Please sign in to comment.