Skip to content

Commit

Permalink
chore: adjust pkg json scripts and remove redundant test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Oct 9, 2023
1 parent c6e3357 commit ee20ed4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 29 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/test.yml

This file was deleted.

10 changes: 7 additions & 3 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ jobs:
verify:
name: Verify changes
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v2

- name: Setup Node 18.x
uses: actions/setup-node@v1
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install Dependencies
run: npm ci
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@
"types"
],
"scripts": {
"format": "run-p format:*",
"format:eslint": "eslint --file index.js \"lib/**/*.js\" \"__tests__/**/*.js\" --fix",
"format:prettier": "prettier \"**/*.{js,md}\" \"package.json\" --write",
"lint": "run-p lint:*",
"lint:eslint": "eslint --fix index.js \"lib/**/*.js\" \"__tests__/**/*.js\"",
"lint:prettier": "prettier \"**/*.{js,md}\" \"package.json\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
"test": "npm run test-types && run-p lint:* && jest --runInBand --silent --coverage",
"test-types": "tsd",
"test": "run-p test:*",
"test:unit": "jest --runInBand --silent --coverage",
"test:types": "tsd",
"test-watch": "npm run test-types && run-p lint:* && jest --runInBand --watch",
"generate-docs": "node ./scripts/generateDocs.js",
"serve-docs": "docsify serve docs -p 3000 -P 12345",
Expand Down Expand Up @@ -130,7 +133,8 @@
"Yuliya Baran <baranyu@amazon.com>",
"Charles Dorner <dornerc@amazon.com>",
"Dustin Boudreau <boudrd@amazon.com>",
"Danny Banks <djb@amazon.com>"
"Danny Banks <djb@amazon.com>",
"Joren Broekema <joren.broekema@gmail.com>"
],
"homepage": "https://github.com/amzn/style-dictionary",
"dependencies": {
Expand Down

0 comments on commit ee20ed4

Please sign in to comment.