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

add extract-api.yaml #216

Merged
merged 28 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2aadbd0
add extract-api.yaml
DanRod1999 Oct 14, 2024
2dd19ff
Merge branch 'main' into dan/extract-api
DanRod1999 Oct 14, 2024
5908f4b
test on dan/extract-api branch
DanRod1999 Oct 14, 2024
3148b1f
Merge branch 'dan/extract-api' of https://github.com/iTwin/imodel-tra…
DanRod1999 Oct 14, 2024
a1401a4
install pnpm with corepack
DanRod1999 Oct 14, 2024
5afb9e6
-w flag
DanRod1999 Oct 14, 2024
b679542
use betools extract-api
DanRod1999 Oct 14, 2024
d070691
test with working dir
DanRod1999 Oct 15, 2024
185ff2c
use extract-api format from presentation
DanRod1999 Oct 15, 2024
472f202
betools
DanRod1999 Oct 15, 2024
22e739a
fix api extractor errors
DanRod1999 Oct 15, 2024
080a1eb
pnpm install
DanRod1999 Oct 15, 2024
39c4b9b
Revert "pnpm install"
DanRod1999 Oct 15, 2024
0c2156f
Merge branch 'main' into dan/extract-api
DanRod1999 Oct 15, 2024
d411c4d
Change files
DanRod1999 Oct 15, 2024
e545b7a
edit log message
DanRod1999 Oct 15, 2024
6aa99eb
modify yml
DanRod1999 Oct 15, 2024
f29a4c8
remove comments
DanRod1999 Oct 15, 2024
dc7b344
extract-api
DanRod1999 Oct 15, 2024
3032567
change file name to imodel-transformer
DanRod1999 Oct 18, 2024
1eafb88
check diff
DanRod1999 Oct 18, 2024
f2419ce
update gitignore
DanRod1999 Oct 18, 2024
7aa9bbd
change git ignore path
DanRod1999 Oct 18, 2024
a4498b9
untrack api/temp
DanRod1999 Oct 18, 2024
ccdcdf7
change location to common/api
DanRod1999 Oct 21, 2024
6b02b33
Merge branch 'main' into dan/extract-api
DanRod1999 Oct 21, 2024
3008606
remove diff
DanRod1999 Oct 21, 2024
1ce07d2
fix docs index file path
DanRod1999 Oct 21, 2024
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
73 changes: 73 additions & 0 deletions .github/workflows/extract-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# imodel-transformer Extract API Build

name: Extract API

on:
workflow_dispatch:
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- docs/**
- .github/CODEOWNERS
- common/changes/**/*.json
- "**/CHANGELOG.json"
- "**/CHANGELOG.md"

jobs:
extract-api:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0


- name: Configure git
run: |
git config --local user.email imodeljs-admin@users.noreply.github.com
git config --local user.name imodeljs-admin

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 7.27.0

- name: Use Node.js 18
MichaelSwigerAtBentley marked this conversation as resolved.
Show resolved Hide resolved
uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: 'pnpm'

- name: Pnpm install
run: pnpm install

- name: Pnpm build
run: pnpm run build

- name: Run Extract API
run: pnpm run extract-api
working-directory: ${{ github.workspace }}/packages/transformer

- name: Test Git Diffs
run: |
git status --porcelain -u
git diff

- name: Assert no uncommitted changes (for extension api)
shell: bash
run: |
if [ $(git status --porcelain | wc -l) -ne "0" ]; then
echo "The following file(s) contain uncommitted changes:"
git status --porcelain -u
echo -e 'Please do the following:\n1. run `pnpm run extract-api` in packages/transformer \n2. commit the modified generated extension api files \n3. run pnpm change in root dir'
exit 1
fi

- name: Publish extracted api
uses: actions/upload-artifact@v4
with:
name: extracted-api
path: common/api
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ imjs_extensions

# rush-specific
/common/temp
/**/api/temp
package-deps.json
/**/.rush
*.build.log
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "add extract-api.yaml",
"packageName": "@itwin/imodel-transformer",
"email": "'DanRod1999@users.noreply.github.com'",
"dependentChangeType": "patch"
}
Loading
Loading