Skip to content

Commit

Permalink
style: replace spaces with tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
screendriver committed Oct 9, 2022
1 parent bc6a98a commit b2caf17
Show file tree
Hide file tree
Showing 16 changed files with 16,463 additions and 16,463 deletions.
138 changes: 69 additions & 69 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,72 +3,72 @@ name: CI
on: [push, pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- name: Run unit tests
run: npm run test:unit:coverage
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: target/coverage/coverage-final.json
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16]
name: Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Check source code
run: npm run lint
- name: Compile source code
run: npm run compile
- name: Upload compiled source code as artifact
uses: actions/upload-artifact@v3
with:
name: compiled-source-node-${{ matrix.node-version }}
path: target/src/
- name: Run tests
run: npm run test:integration
release:
if: github.ref == 'refs/heads/main'
needs: [commitlint, code-coverage, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
- name: Download compiled source code artifact
uses: actions/download-artifact@v3
with:
name: compiled-source-node-16
path: target/src/
- name: Semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- name: Run unit tests
run: npm run test:unit:coverage
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: target/coverage/coverage-final.json
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16]
name: Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Check source code
run: npm run lint
- name: Compile source code
run: npm run compile
- name: Upload compiled source code as artifact
uses: actions/upload-artifact@v3
with:
name: compiled-source-node-${{ matrix.node-version }}
path: target/src/
- name: Run tests
run: npm run test:integration
release:
if: github.ref == 'refs/heads/main'
needs: [commitlint, code-coverage, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
- name: Download compiled source code artifact
uses: actions/download-artifact@v3
with:
name: compiled-source-node-16
path: target/src/
- name: Semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 5 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"tabWidth": 4
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"tabWidth": 4,
"useTabs": true
}
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
## [2.0.7](https://github.com/screendriver/verify-github-webhook-secret/compare/v2.0.6...v2.0.7) (2022-04-22)


### Bug Fixes

* **deps:** update dependency tslib to v2.4.0 ([e0c0f24](https://github.com/screendriver/verify-github-webhook-secret/commit/e0c0f24752d481fa11b50b10a6a606ee2cbf1607))
- **deps:** update dependency tslib to v2.4.0 ([e0c0f24](https://github.com/screendriver/verify-github-webhook-secret/commit/e0c0f24752d481fa11b50b10a6a606ee2cbf1607))

## [2.0.6](https://github.com/screendriver/verify-github-webhook-secret/compare/v2.0.5...v2.0.6) (2021-08-12)

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import micro from 'micro';
import { verifySecret } from 'verify-github-webhook-secret';

const server = micro(async (req) => {
const valid = await verifySecret(req, 'my-secret');
return valid ? 'Allowed' : 'Not allowed';
const valid = await verifySecret(req, 'my-secret');
return valid ? 'Allowed' : 'Not allowed';
});
```

Expand All @@ -40,7 +40,7 @@ Another way to call the function is directly with the HTTP body and the `x-hub-s
import { verifySecret } from 'verify-github-webhook-secret';

async function myFunc() {
const valid = await verifySecret('{"foo":"bar"}', 'my-secret', 'sha1=30a233839fe2ddd9233c49fd593e8f1aec68f553');
return valid ? 'Allowed' : 'Not allowed';
const valid = await verifySecret('{"foo":"bar"}', 'my-secret', 'sha1=30a233839fe2ddd9233c49fd593e8f1aec68f553');
return valid ? 'Allowed' : 'Not allowed';
}
```
10 changes: 5 additions & 5 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
extensions: ['ts'],
require: ['ts-node/register/transpile-only'],
environmentVariables: {
TS_NODE_PROJECT: 'tsconfig.base.json',
},
extensions: ['ts'],
require: ['ts-node/register/transpile-only'],
environmentVariables: {
TS_NODE_PROJECT: 'tsconfig.base.json',
},
};
Loading

0 comments on commit b2caf17

Please sign in to comment.