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
5 changes: 5 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
on:
- push
- release

defaults:
run:
working-directory: ./packages/javascript-api

name: Report code coverage
jobs:
code-coverage:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on: push
name: Lint

jobs:
prettier:
name: Check prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- name: Install Deps
run: |
yarn install --immutable
- name: Prettier check
run: |
yarn run lint-prettier
eslint:
name: Check eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- name: Install Deps
run: |
yarn install --immutable
- name: Eslint check
run: |
yarn run lint-eslint
36 changes: 6 additions & 30 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
on: push
name: Test on push

defaults:
run:
working-directory: ./packages/javascript-api

jobs:
test:
name: Test (JSDOM)
Expand Down Expand Up @@ -27,6 +32,7 @@ jobs:
run: yarn install --immutable
- name: Run tests (node)
run: yarn test-node

test_pack:
name: Build
runs-on: ubuntu-latest
Expand All @@ -40,33 +46,3 @@ jobs:
run: yarn install --immutable
- name: Build the package
run: yarn pack
prettier:
name: Check prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- name: Install Deps
run: |
yarn install --immutable
- name: Prettier check
run: |
yarn run lint-prettier
eslint:
name: Check eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- name: Install Deps
run: |
yarn install --immutable
- name: Eslint check
run: |
yarn run lint-eslint
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
types:
- published

defaults:
run:
working-directory: ./packages/javascript-api

name: Release
jobs:
release:
Expand Down
5 changes: 0 additions & 5 deletions examples/graphql/all_location_names.graphql

This file was deleted.

8 changes: 0 additions & 8 deletions examples/graphql/lines_for_location.graphql

This file was deleted.

71 changes: 0 additions & 71 deletions examples/graphql/location_list.js

This file was deleted.

71 changes: 0 additions & 71 deletions examples/graphql/subscription.js

This file was deleted.

23 changes: 0 additions & 23 deletions examples/typescript-usage.ts

This file was deleted.

3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
projects: ['<rootDir>/packages/javascript-api'],
};
Loading
Loading