-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from jagaapple/release/v2.0.0
# New Features - Add `createSecureHeaders` function #25 # Changes and Fixes - Migrate to GitHub Actions #21 - Update dependencies #23 - Remove default export #24 - Modify a year number in LICENSE - Update changelog - Bump up a version number to 2.0.0
- Loading branch information
Showing
54 changed files
with
19,071 additions
and
3,390 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: "💩 Bug Report" | ||
about: "If something isn't working as expected..." | ||
title: "" | ||
labels: "Type: 4. Bug" | ||
assignees: "" | ||
--- | ||
|
||
# 💩 Bug Report | ||
## A summary of the bug | ||
A clear and concise description of what the bug is. | ||
|
||
|
||
## Current behavior | ||
A clear and concise description of the behavior. | ||
|
||
### To Reproduce | ||
Steps to reproduce the behavior, please provide code snippets or a repository. | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
|
||
## Expected behavior | ||
A clear and concise description of what you expected to happen or code. | ||
|
||
|
||
## Environment | ||
- This project version(s): `vX.X.X` | ||
- Nodejs version: `vX.X.X` | ||
- OS: `macOS 10.X.X` | ||
- Browser (if applies): `Google Chrome vX.X.X` | ||
|
||
|
||
## Additional context | ||
Add any other context about the problem here, or a screenshot if applicable. | ||
|
||
--- | ||
|
||
- [ ] I've tried to find similar issues | ||
- [ ] I would like to work on a fix 💪🏻 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: "🌱 Feature Request" | ||
about: "Create a feature request for this project..." | ||
title: "" | ||
labels: "Type: 2. Enhancement" | ||
assignees: "" | ||
--- | ||
|
||
# 🌱 Feature Request | ||
## Is your feature request related to a problem? Please describe. | ||
A clear and concise description of what you want and what your use case is. | ||
|
||
|
||
## Describe the solution you'd like | ||
A clear and concise description of what you want to happen. | ||
|
||
|
||
## Describe alternatives you've considered | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
|
||
## Documentation, Adoption, Migration Strategy | ||
If you can, explain how users will be able to use this and how it might be documented. Maybe a mock-up? | ||
|
||
|
||
## Additional context | ||
Add any other context or screenshots about the feature request here. | ||
|
||
--- | ||
|
||
- [ ] I've tried to find similar issues and pull requests | ||
- [ ] I would like to work on this feature 💪🏻 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: "Build and test" | ||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: {} | ||
jobs: | ||
|
||
parameters: | ||
name: "Set parameters" | ||
runs-on: "ubuntu-latest" | ||
outputs: | ||
GITHUB_SHA: "${{ steps.GITHUB_SHA.outputs.GITHUB_SHA }}" | ||
steps: | ||
- id: "GITHUB_SHA" | ||
run: "echo \"::set-output name=GITHUB_SHA::$GITHUB_SHA\"" | ||
|
||
build: | ||
name: "Build" | ||
runs-on: "ubuntu-latest" | ||
needs: "parameters" | ||
strategy: | ||
matrix: | ||
node: ["10.15", "12.13"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Use Node.js" | ||
uses: "actions/setup-node@v1" | ||
with: | ||
node-version: "${{ matrix.node }}" | ||
- name: "Cache dependencies" | ||
id: "node-modules-dependencies" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: "./node_modules" | ||
key: "node-modules-${{ needs.parameters.outputs.GITHUB_SHA }}-${{ matrix.node }}" | ||
- name: "Install dependencies if needed" | ||
if: "steps.node-modules-dependencies.outputs.cache-hit != 'true'" | ||
run: "npm ci" | ||
|
||
test: | ||
name: "Test" | ||
needs: ["parameters", "build"] | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
node: ["10.15", "12.13"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Use Node.js" | ||
uses: "actions/setup-node@v1" | ||
with: | ||
node-version: "${{ matrix.node }}" | ||
- name: "Restore cached dependencies" | ||
id: "node-modules-dependencies" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: "./node_modules" | ||
key: "node-modules-${{ needs.parameters.outputs.GITHUB_SHA }}-${{ matrix.node }}" | ||
- name: "Build test" | ||
run: "npm run build" | ||
- name: "Execute tests" | ||
run: "npm test" | ||
- name: "Calculate coverage rate" | ||
if: "matrix.node == '12.13'" | ||
env: | ||
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" | ||
run: "npm run coverage" | ||
|
||
lint: | ||
name: "Lint" | ||
needs: ["parameters", "build"] | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
node: ["10.15", "12.13"] | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- name: "Use Node.js" | ||
uses: "actions/setup-node@v1" | ||
with: | ||
node-version: "${{ matrix.node }}" | ||
- name: "Restore cached dependencies" | ||
id: "node-modules-dependencies" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: "./node_modules" | ||
key: "node-modules-${{ needs.parameters.outputs.GITHUB_SHA }}-${{ matrix.node }}" | ||
- name: "Execute linters" | ||
run: "npm run lint" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.