Skip to content

Commit

Permalink
chore: upgrade yarn 4.2.1 + all dev deps (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
webbertakken committed May 3, 2024
1 parent 41b01d9 commit 9a72604
Show file tree
Hide file tree
Showing 7 changed files with 3,292 additions and 1,842 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install package manager (from package.json)
run: |
corepack enable
corepack install
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version-file: package.json
cache: 'yarn'

- name: Install deps
run: yarn install --frozen-lockfile --immutable

- name: Tests
run: yarn vitest run --coverage
run: yarn coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Publish
uses: cloudflare/wrangler-action@2.0.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
15 changes: 10 additions & 5 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install package manager (from package.json)
run: |
corepack enable
corepack install
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version-file: package.json
cache: 'yarn'

- name: Install deps
run: yarn install --frozen-lockfile --immutable

- name: Tests
run: yarn vitest run --coverage
run: yarn coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.log
/.idea
/dist
/.yarn/

# Test coverage
/coverage
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

Send emails to Cloudflare and forward them to different channels using an email worker.



## Setup

#### Prerequisites
Expand Down
30 changes: 18 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,30 @@
"name": "email-worker",
"type": "module",
"version": "1.0.0",
"private": true,
"main": "src/index.ts",
"scripts": {
"private": true,
"main": "src/index.ts",
"scripts": {
"deploy": "wrangler publish src/index.ts",
"dev": "wrangler dev src/index.ts --local",
"test": "vitest --coverage"
"test": "vitest",
"coverage": "vitest --coverage"
},
"dependencies": {
"letterparser": "^0.0.10",
"util": "^0.12.5"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230221.0",
"@types/jest": "^29.4.0",
"@vitest/coverage-c8": "^0.31.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"vitest": "^0.31.0",
"vitest-environment-miniflare": "^2.12.1"
}
"@cloudflare/workers-types": "^4.20240502.0",
"@types/jest": "^29.5.12",
"@vitest/coverage-v8": "^0.34.6",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"vitest": "^1.6.0",
"vitest-environment-miniflare": "^2.14.2"
},
"volta": {
"node": "20.12.2",
"yarn": "4.2.1"
},
"packageManager": "yarn@4.2.1"
}

0 comments on commit 9a72604

Please sign in to comment.