Skip to content

added test for alibaba/GraphScope and implemented multiple inconsiste… #13

added test for alibaba/GraphScope and implemented multiple inconsiste…

added test for alibaba/GraphScope and implemented multiple inconsiste… #13

Workflow file for this run

name: Continuous Integration
on:
pull_request:
push:
branches:
- master
permissions:
contents: read
jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install Dependencies
id: bun-install
run: bun install --frozen-lockfile
- name: Check Format
id: bun-format-check
run: bun run format:check
- name: Lint
id: bun-lint
run: bun run lint
- name: Test
id: bun-ci-test
run: bun test
check-dist:
name: Check dist/
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install Dependencies
id: install
run: bun install --frozen-lockfile
- name: Build dist/ Directory
id: build
run: bun run bundle
- name: Compare Directories
id: diff
run: |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
name: Upload Artifact
id: upload
uses: actions/upload-artifact@v4
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/basic/success/openapi.json
doc-path: ${{ github.workspace }}/__tests__/data/basic/success/api.md
token: ${{ secrets.GITHUB_TOKEN }}