Skip to content

Commit

Permalink
chore: bump dev dependencies version (#237)
Browse files Browse the repository at this point in the history
* chore(deps-dev): Bump vitest from 0.29.2 to 0.29.8

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.29.2 to 0.29.8.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.29.8/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps-dev): Bump typescript from 4.9.5 to 5.0.3

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.5 to 5.0.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(project): bump dev dependencies version

Signed-off-by: Raí Siqueira <rai93siqueira@gmail.com>

* chore: fix pnpm file

* ci: improve gh ci

Signed-off-by: Raí Siqueira <rai93siqueira@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Raí Siqueira <rai93siqueira@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
raisiqueira and dependabot[bot] authored Apr 4, 2023
1 parent 836e80d commit 48245ff
Show file tree
Hide file tree
Showing 7 changed files with 201 additions and 418 deletions.
39 changes: 28 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: CI
on: [push]

# cancel in-progress runs on new commits to same PR (gitub.event.number)
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
Expand All @@ -12,24 +18,35 @@ jobs:

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

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
- name: Install PNPM
uses: pnpm/action-setup@v2.2.4
with:
node-version: ${{ matrix.node }}
version: 7

- name: Install PNPM
run: npm install -g pnpm
- run: pnpm install --frozen-lockfile

- name: Install deps and build (with cache)
run: pnpm install
- name: Cache node_modules
uses: actions/cache@v3
id: pnpm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node and install project dependencies
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: 'pnpm'

- name: Lint
run: npm run lint
run: pnpm run lint

- name: Test
run: npm run test
run: pnpm run test

- name: Build
run: npm run build
run: pnpm run build
24 changes: 16 additions & 8 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,22 @@ jobs:
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
- name: Checkout repo
uses: actions/checkout@v3

- name: Install PNPM
uses: pnpm/action-setup@v2.2.4
with:
version: 7

- run: pnpm install --frozen-lockfile

- name: Setup Node and install project dependencies
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install PNPM
run: npm i -g pnpm
- uses: andresz1/size-limit-action@v1

- uses: preactjs/compressed-size-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: "build"
repo-token: ${{ secrets.GITHUB_TOKEN }}
build-script: 'build'
5 changes: 3 additions & 2 deletions lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rsiqueira/use-viacep",
"version": "1.5.0",
"version": "1.5.1",
"description": "React hook to fetch Brazilian CEP's using ViaCEP api.",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -41,11 +41,12 @@
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vitest/coverage-c8": "^0.27.3",
"@vitest/coverage-istanbul": "^0.29.8",
"happy-dom": "^6.0.4",
"msw": "^0.49.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vitest": "0.29.2"
"vitest": "0.29.8"
},
"peerDependencies": {
"react": ">=16.8.0 || >=17.0.0 || >= 18.0.0"
Expand Down
3 changes: 3 additions & 0 deletions lib/vitest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ export default defineConfig({
globals: true,
environment: 'happy-dom',
setupFiles: ['./vitestSetup.ts'],
coverage: {
provider: 'istanbul',
},
},
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"prettier": "^2.8.4",
"size-limit": "^8.2.4",
"tsup": "^6.6.3",
"typescript": "^4.9.5",
"typescript": "^5.0.3",
"vite": "^4.2.1",
"vitest": "0.29.2"
"vitest": "0.29.8"
},
"packageManager": "pnpm@7.9.0",
"size-limit": [
Expand Down
Loading

0 comments on commit 48245ff

Please sign in to comment.