Skip to content
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
15 changes: 11 additions & 4 deletions .github/workflows/pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Vacuum OpenAPI Spec linter
uses: eduelias/[email protected]
- name: Cache node modules
uses: actions/cache@v4
with:
cmd: vacuum lint -d --base specification/ specification/proxygen.yaml

path: ~/.npm
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}

- name: Install repo
run: make install

- name: Vacuum OpenAPI Spec linter
run: make lint

13 changes: 10 additions & 3 deletions .github/workflows/publish-uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ jobs:
- name: Set OAS info.version to ${{ github.ref_name}}-${{github.sha}}
run: sed -i 's/__VERSION__/${{ github.ref_name}}-${{github.sha}}/g' specification/proxygen.yaml

- name: Vacuum OpenAPI Spec linter
uses: eduelias/[email protected]
- name: Cache node modules
uses: actions/cache@v4
with:
cmd: vacuum lint -d --base specification/ specification/proxygen.yaml
path: ~/.npm
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}

- name: Install repo
run: make install

- name: Vacuum OpenAPI Spec linter
run: make lint

- name: Setup proxygen-cli
env:
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,17 @@ jobs:
- name: Set OAS info.version to ${{ env.SPEC_VERSION }}
run: sed -i 's/__VERSION__/${{ env.SPEC_VERSION }}/g' specification/proxygen.yaml

- name: Vacuum OpenAPI Spec linter
uses: eduelias/[email protected]
- name: Cache node modules
uses: actions/cache@v4
with:
cmd: vacuum lint -d --base specification/ specification/proxygen.yaml
path: ~/.npm
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}

- name: Install repo
run: make install

- name: Vacuum OpenAPI Spec linter
run: make lint

- name: Create Release ${{ env.SPEC_VERSION }}
uses: softprops/action-gh-release@v1
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,6 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
/.vs


node_modules/
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
install:
curl -fsSL https://quobix.com/scripts/install_vacuum.sh | sh > /dev/null
# BIN directory
BIN := $(THIS_DIR)/node_modules/.bin

# Path
PATH := node_modules/.bin:$(PATH)
SHELL := /bin/bash

install-node:
npm install

install: install-node

lint:
vacuum lint -d --base specification/ specification/proxygen.yaml
208 changes: 208 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "proxygen-api-specification",
"version": "0.0.1",
"description": "Proxygen API Specification",
"dependencies": {
"@quobix/vacuum": "^0.16.1"
}
}
44 changes: 24 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
python = "^3.9"

[tool.poetry.group.dev.dependencies]
gitpython = "^3.1.31"
gitpython = "^3.1.32"
semver = "^3.0.1"

[build-system]
Expand Down
Loading