Skip to content

Commit

Permalink
[chore] Improve address verification unit tests (#430)
Browse files Browse the repository at this point in the history
- Improve address verification unit tests
- Test in all Node versions, only lint + coverage in latest Node version
- Lock Chai to 4.3.10 to avoid Node 14+ syntax
  • Loading branch information
nwithan8 authored Jan 8, 2024
1 parent 5bdd5e0 commit 5216432
Show file tree
Hide file tree
Showing 11 changed files with 493 additions and 181 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,36 @@ jobs:
- run: make install
- run: make install-styleguide
- run: make build
- run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- run: make install
- run: make install-styleguide
- run: make build
- run: make lint
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- run: make install
- run: make install-styleguide
- run: make build
- run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make coverage
- name: Coveralls
if: github.ref == 'refs/heads/master'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: make lint
docs:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion examples
Submodule examples updated 742 files
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-preset-minify": "^0.5.2",
"chai": "^4.3.7",
"chai": "4.3.10",
"chai-as-promised": "^7.1.1",
"cross-env": "^7.0.3",
"eslint": "^8.40.0",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5216432

Please sign in to comment.