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

docs(APIMGMT-711): Cleanup of not needed code #513

Merged
merged 3 commits into from
Mar 3, 2025
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
8 changes: 0 additions & 8 deletions .alexrc.json

This file was deleted.

19 changes: 0 additions & 19 deletions .devcontainer/Dockerfile

This file was deleted.

27 changes: 0 additions & 27 deletions .devcontainer/devcontainer.json

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc.js

This file was deleted.

93 changes: 1 addition & 92 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,66 +23,23 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10

# We use node 18 and Python 3.12
strategy:
matrix:
node-version: [ 18.x ]
python-version: [ 3.12 ]

# The following steps are performed for each lint job
steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install yamllint

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Node dependencies
run: |
yarn install

- name: Lint API specification and markdown
run: |
yarn lint

# The deploy task actually deploys any changes to the en branch
push-to-en:
# We run this on the latest ubuntu
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
timeout-minutes: 10

# We use node 18.X
strategy:
matrix:
node-version: [ 18.x ]

# Requires the lint and test jobs to pass first
needs:
- lint

# The following steps are performed for each job
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Push API specification
uses: s0/git-publish-subdir-action@v2.6.0
env:
Expand Down Expand Up @@ -143,25 +100,11 @@ jobs:
if: github.ref == 'refs/heads/staging'
timeout-minutes: 10

# We use node 18.X
strategy:
matrix:
node-version: [ 18.x ]

# Requires the lint and test jobs to pass first
needs:
- lint

# The following steps are performed for each job
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Push API specification
uses: s0/git-publish-subdir-action@v2.6.0
env:
Expand Down Expand Up @@ -199,38 +142,4 @@ jobs:
"username": "GitHub Actions"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

# Build the OpenAPI spec and validate using Codegen
validate-spec:
name: Validate OpenAPI spec using Codegen
# We run this on the latest ubuntu
runs-on: ubuntu-latest

# The following steps are performed for each job
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
path: box-openapi

- name: Set up Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Check out the Codegen repo
uses: actions/checkout@v4
with:
repository: box/box-codegen
ref: main
token: ${{ secrets.CODEGEN_REPO_ACCESS_TOKEN }}
path: box-codegen

- name: Run Codegen spec validation
run: |
cd $GITHUB_WORKSPACE/box-codegen
npm install
cd scripts
npm install
npm run generate $GITHUB_WORKSPACE/box-openapi/openapi/openapi.json,$GITHUB_WORKSPACE/box-openapi/openapi/openapi-v2025.0.json output typescript,java,swift,c#,python
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
node_modules
build
src/dev/openapi.json
src/dev/scripts/objects/*
src/dev/index.build.js
migrate.js
compiled
yarn-error.log

#Intelij Idea
*.iml
.idea
Expand Down
Loading