Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/development' into feat-aquantity
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Bansal committed Apr 18, 2024
2 parents 8ffa994 + 6b7dd14 commit 46a9556
Show file tree
Hide file tree
Showing 208 changed files with 39,435 additions and 2,831 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify Changes

on:
pull_request:

jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 2

- uses: actions/setup-node@v4
name: Install Node.js
with:
cache-dependency-path: '**/config/rush/pnpm-lock.yaml'
registry-url: https://npm.pkg.github.com/

- name: Verify Changes
run: node common/scripts/install-run-rush.js change --verify
21 changes: 20 additions & 1 deletion .github/workflows/lint.yaml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,23 @@ jobs:
shell: bash
run: |
echo "The following files are not formatted:"
echo "${{steps.prettier-run.outputs.prettier_output}}"
echo "${{steps.prettier-run.outputs.prettier_output}}"
sort-package-json:
name: Sort package.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout

- uses: actions/setup-node@v4
name: Install Node.js
with:
cache-dependency-path: '**/config/rush/pnpm-lock.yaml'
registry-url: https://npm.pkg.github.com/

- name: Install Rush
run: node common/scripts/install-run-rush.js install

- name: Sort package.json
run: node common/scripts/install-run-rush.js sort-package-json
21 changes: 11 additions & 10 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,27 @@ jobs:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
name: Install Node.js
with:
cache-dependency-path: '**/config/rush/pnpm-lock.yaml'
registry-url: https://npm.pkg.github.com/
registry-url: https://registry.npmjs.org/

- name: Configure Git User
- name: Set Git User
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
- name: Install Rush
run: node common/scripts/install-run-rush.js install

- name: Bump Version for Packages
run: node common/scripts/install-run-rush.js version --bump

- name: Publish Packages via Rush
run: |
git fetch origin development:refs/remotes/origin/development -a
node common/scripts/install-run-rush.js publish --apply --publish --target-branch development --add-commit-details --set-access-level=public
run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --version-policy stonecrop --target-branch development --add-commit-details --set-access-level=public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58 changes: 10 additions & 48 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ jobs:
outputs:
aform: ${{ steps.filter.outputs.aform }}
atable: ${{ steps.filter.outputs.atable }}
graphql_client: ${{ steps.filter.outputs.graphql_client }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
aform: aform/**
atable: atable/**
graphql_client: graphql_client/**
aform:
name: AForm
Expand All @@ -36,14 +34,14 @@ jobs:

strategy:
matrix:
node: [16.x]
node: [20.x]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache-dependency-path: '**/config/rush/pnpm-lock.yaml'
registry-url: https://npm.pkg.github.com/
Expand All @@ -57,9 +55,10 @@ jobs:

- name: Coverage Report
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v1
uses: davelosert/vitest-coverage-report-action@v2
with:
working-directory: ./aform
file-coverage-mode: 'all'
vite-config-path: './vite.config.ts'

atable:
Expand All @@ -74,14 +73,14 @@ jobs:

strategy:
matrix:
node: [16.x]
node: [20.x]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache-dependency-path: '**/config/rush/pnpm-lock.yaml'
registry-url: https://npm.pkg.github.com/
Expand All @@ -95,45 +94,8 @@ jobs:

- name: Coverage Report
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v1
uses: davelosert/vitest-coverage-report-action@v2
with:
working-directory: ./atable
vite-config-path: './vite.config.ts'

graphql-client:
name: GraphQL Client
needs: changes
if: ${{ needs.changes.outputs.graphql_client == 'true' }}
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

strategy:
matrix:
node: [16.x]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
cache-dependency-path: '**/config/rush/pnpm-lock.yaml'
registry-url: https://npm.pkg.github.com/

- name: Install Rush
run: node common/scripts/install-run-rush.js install

- name: Run Tests
working-directory: ./graphql_client
run: node ../common/scripts/install-run-rushx.js test:coverage

- name: Coverage Report
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v1
with:
working-directory: ./graphql_client
file-coverage-mode: 'all'
vite-config-path: './vite.config.ts'
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ bower_components
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Build outputs
dist/

# Dependency directories
node_modules/
jspm_packages/
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.19.1
20.11.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This project has the following system dependencies:

- [`pnpm`](https://pnpm.io/) (using yarn or npm will break packages)
- [`rush`](https://rushjs.io/)
- `nvm` and `node v16`: `nvm install --lts && nvm use --lts`
- `nvm` and `node v20`: `nvm install 20 --lts && nvm use 20 --lts`

```bash
git clone stonecrop
Expand Down
2 changes: 1 addition & 1 deletion aform/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ module.exports = {
'@typescript-eslint/no-unsafe-return': 'off',
},

ignorePatterns: ['.eslintrc.cjs', '*.config.ts', 'node_modules/', 'dist/'],
ignorePatterns: ['.eslintrc.cjs', '*.config.ts', '*.spec.ts', 'node_modules/', 'dist/'],
}
Loading

0 comments on commit 46a9556

Please sign in to comment.