Skip to content

Commit

Permalink
feat: implement our own json-diff (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
joebobmiles committed Jul 16, 2021
2 parents 89ee174 + 17472a8 commit 8eb78f9
Show file tree
Hide file tree
Showing 7 changed files with 392 additions and 304 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 15
# We must indicate the Github Package Registry, as our config packages
# are there (and also NPM). Frustratingly, NPM prefers the GPR over
# NPM - even when we indicate that we want to pull from NPM instead of
# the GPR.
registry-url: https://npm.pkg.github.com
registry-url: https://npm.pkg.github.com/

- run: npm ci
env:
# Provide a "password" to GPR so that we can pull our packages.
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: npm run build

- run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: npm-install-log-test
path: /home/runner/.npm/_logs
43 changes: 22 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 15
# We must indicate the Github Package Registry, as our config packages
# are there (and also NPM). Frustratingly, NPM prefers the GPR over
# NPM - even when we indicate that we want to pull from NPM instead of
# the GPR.
registry-url: https://npm.pkg.github.com
registry-url: https://npm.pkg.github.com/

- run: npm ci
env:
# Provide a "password" to GPR so that we can pull our packages.
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: npx commitlint --from HEAD~1 --to HEAD --verbose

- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: npm-install-log-commitlint
path: /home/runner/.npm/_logs

eslint:
name: Lint code
runs-on: ubuntu-latest
Expand All @@ -40,21 +41,20 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 15
# We must indicate the Github Package Registry, as our config packages
# are there (and also NPM). Frustratingly, NPM prefers the GPR over
# NPM - even when we indicate that we want to pull from NPM instead of
# the GPR.
registry-url: https://npm.pkg.github.com
registry-url: https://npm.pkg.github.com/

- run: npm ci
env:
# Provide a "password" to GPR so that we can pull our packages.
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: npm ci

- run: npx eslint .

- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: npm-install-log-eslint
path: /home/runner/.npm/_logs

test:
name: Run tests
runs-on: ubuntu-latest
Expand All @@ -65,15 +65,16 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 15
# We must indicate the Github Package Registry, as our config packages
# are there (and also NPM). Frustratingly, NPM prefers the GPR over
# NPM - even when we indicate that we want to pull from NPM instead of
# the GPR.
registry-url: https://npm.pkg.github.com
registry-url: https://npm.pkg.github.com/

- run: npm ci
env:
# Provide a "password" to GPR so that we can pull our packages.
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: npm run test
- run: npm run test

- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: npm-install-log-test
path: /home/runner/.npm/_logs
Loading

0 comments on commit 8eb78f9

Please sign in to comment.