-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1c7c54
commit 7f81269
Showing
28 changed files
with
7,141 additions
and
173 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/base", | ||
"name": "Node.js", | ||
"image": "mcr.microsoft.com/devcontainers/typescript-node:16", | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/pnpm:2": {} | ||
}, | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["README.md", "CONTRIBUTING.md"] | ||
}, | ||
"vscode": { | ||
"extensions": [ | ||
"lizebang.bash-extension-pack", | ||
"EditorConfig.EditorConfig", | ||
"GitHub.vscode-github-actions" | ||
] | ||
"extensions": ["EditorConfig.EditorConfig"] | ||
} | ||
}, | ||
// https://webinstall.dev/ | ||
"postCreateCommand": "curl -sS https://webi.sh/shfmt | sh && curl -sS https://webi.sh/shellcheck | sh" | ||
"postCreateCommand": ".devcontainer/postCreate.sh", | ||
"remoteUser": "node" | ||
} |
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,2 @@ | ||
#!/bin/sh | ||
pnpm i |
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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
action.yml linguist-detectable | ||
|
||
# This makes the newlines behave correctly in weird situations like running a | ||
# Windows-mounted CRLF file from within a WSL shell that expects LF. | ||
*.sh eol=lf | ||
dist/* binary | ||
tsconfig.json linguist-language=JSON-With-Comments |
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,52 @@ | ||
name: Check dist/ | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "**.md" | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "**.md" | ||
|
||
jobs: | ||
check-dist: | ||
name: Check dist/ | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.x" | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Rebuild dist/ | ||
run: | | ||
pnpm build | ||
pnpm package | ||
- name: Compare diff | ||
run: | | ||
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | ||
echo "Detected uncommitted changes after build. See status below:" | ||
git diff | ||
exit 1 | ||
fi | ||
id: diff | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: ${{ failure() && steps.diff.conclusion == 'failure' }} | ||
with: | ||
name: dist | ||
path: dist/ |
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,55 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.x" | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- run: pnpm build | ||
- run: pnpm package | ||
- name: Test | ||
run: pnpm test | ||
|
||
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
format: | ||
name: Check Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.x" | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- run: pnpm format-check |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
name: Update tags | ||
on: | ||
release: | ||
types: [released] | ||
concurrency: | ||
group: update-tags | ||
cancel-in-progress: true | ||
permissions: | ||
contents: write | ||
jobs: | ||
update-tags: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
source-tag: ${{ github.event.release.tag_name }} | ||
name: Update tags | ||
on: | ||
release: | ||
types: [released] | ||
concurrency: | ||
group: update-tags | ||
cancel-in-progress: true | ||
permissions: | ||
contents: write | ||
jobs: | ||
update-tags: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
source-tag: ${{ github.event.release.tag_name }} |
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,3 @@ | ||
node_modules/ | ||
/lib/ | ||
/coverage/ |
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,5 @@ | ||
/node_modules/ | ||
/coverage/ | ||
/dist/ | ||
/lib/ | ||
pnpm-lock.yaml |
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,4 @@ | ||
{ | ||
"printWidth": 88, | ||
"trailingComma": "all" | ||
} |
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 |
---|---|---|
@@ -1,37 +1,35 @@ | ||
**Thanks for taking the time to contribute! ❤️** | ||
|
||
All types of contributions are encouraged and valued, no matter if it's a bug | ||
report 🐛, a feature request 💡, or a Pull Request 🚀. | ||
|
||
- **❓ I have a question:** [Open a Q&A Discussion] | ||
- **🐛 I found a bug:** [Open an Issue] | ||
- **💡 I have an idea:** [Open an Idea Discussion] | ||
- **💻 I want to code:** See below | ||
|
||
## Contributing code | ||
|
||
1. 🔀 Fork the repo | ||
2. 💻 Open the repo in your editor | ||
3. 👨💻 Add your changes to your workspace | ||
4. 🔖 Commit & push your changes | ||
5. 🔁 Open a PR to get your changes merged | ||
6. 🧪 Let the tests run to make sure everything works | ||
7. 🚀 Profit! | ||
|
||
🚀 For a seamless coding experience, we recommend using VS Code or GitHub | ||
Codespaces as your editor! With VS Code's extensions and customizable settings, | ||
you can tailor your environment to suit your preferences. 🌟 Plus, for GitHub | ||
Codespaces users, we provide a `devcontainer.json` config for a ready-to-use | ||
development environment. 🛠️ Enhance your coding productivity and enjoyment with | ||
these powerful editors! 😊 | ||
|
||
We use [EditorConfig] to specify the spacing and file conventions for this | ||
project. Make sure you _try_ to conform with it. Editors like VS Code have | ||
extensions that will do this automatically for you! 😉 | ||
|
||
<!-- prettier-ignore-start --> | ||
[open an issue]: https://github.com/spenserblack/actions-wiki/issues/new | ||
[open a Q&A discussion]: https://github.com/spenserblack/actions-wiki/discussions/new?category=q-a | ||
[open an idea discussion]: https://github.com/spenserblack/actions-wiki/discussions/new?category=ideas | ||
[editorconfig]: https://editorconfig.org/ | ||
<!-- prettier-ignore-end --> | ||
**Thanks for taking the time to contribute! ❤️** | ||
|
||
All types of contributions are encouraged and valued, no matter if it's a bug | ||
report 🐛, a feature request 💡, or a Pull Request 🚀. | ||
|
||
- **❓ I have a question:** [Open a Q&A Discussion][new-qa] | ||
- **🐛 I found a bug:** [Open an Issue][new-issue] | ||
- **💡 I have an idea:** [Open an Idea Discussion][new-idea] | ||
- **💻 I want to code:** See below | ||
|
||
## Contributing code | ||
|
||
1. 🔀 Fork the repo | ||
2. 💻 Open the repo in your editor | ||
3. 👨💻 Add your changes to your workspace | ||
4. 🔖 Commit & push your changes | ||
5. 🔁 Open a PR to get your changes merged | ||
6. 🧪 Let the tests run to make sure everything works | ||
7. 🚀 Profit! | ||
|
||
🚀 For a seamless coding experience, we recommend using VS Code or GitHub | ||
Codespaces as your editor! With VS Code's extensions and customizable settings, | ||
you can tailor your environment to suit your preferences. 🌟 Plus, for GitHub | ||
Codespaces users, we provide a `devcontainer.json` config for a ready-to-use | ||
development environment. 🛠️ Enhance your coding productivity and enjoyment with | ||
these powerful editors! 😊 | ||
|
||
We use [EditorConfig][editorconfig] to specify the spacing and file conventions for this | ||
project. Make sure you _try_ to conform with it. Editors like VS Code have | ||
extensions that will do this automatically for you! 😉 | ||
|
||
[new-issue]: https://github.com/spenserblack/actions-wiki/issues/new | ||
[new-qa]: https://github.com/spenserblack/actions-wiki/discussions/new?category=q-a | ||
[new-idea]: https://github.com/spenserblack/actions-wiki/discussions/new?category=ideas | ||
[editorconfig]: https://editorconfig.org/ |
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.