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

Ability to specify column order for arrays of data #375

Merged
merged 9 commits into from
Oct 29, 2023
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
52 changes: 14 additions & 38 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
version: 2
version: 2.1

node-image: &node-image
image: circleci/node:16

set-npm-global: &set-npm-global
run:
name: set-npm-global
command: |
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export NPM_CONFIG_PREFIX=~/.npm-global' >> $BASH_ENV
echo 'export PATH=~/.npm-global/bin:$PATH' >> $BASH_ENV
source $BASH_ENV
orbs:
node: circleci/[email protected]

save: &save
save_cache:
Expand All @@ -25,43 +15,29 @@ restore: &restore
key: code-{{ .Revision }}

jobs:
install:
lint:
docker:
- <<: *node-image
- image: cimg/base:stable
steps:
- checkout
- <<: *set-npm-global
- run: npm install -g npm@$(jq -r '.engines.npm' package.json)
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- node/install:
node-version: '20'
- run: npm i
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- <<: *save
lint:
docker:
- <<: *node-image
steps:
- <<: *restore
- run: cd example && npm i
- run: npm run lint
test:
docker:
- <<: *node-image
- image: cimg/base:stable
steps:
- <<: *restore
- checkout
- node/install:
node-version: '20'
- run: npm i
- run: npm test

workflows:
version: 2
main_workflow:
jobs:
- install
- lint:
requires:
- install
- test:
requires:
- install
- lint
- test
Loading
Loading