generated from pabio/github-actions-starter
-
Notifications
You must be signed in to change notification settings - Fork 149
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
0 parents
commit d725417
Showing
687 changed files
with
47,359 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,12 @@ | ||
config: | ||
- ./* | ||
tooling: | ||
- tooling/**/*.* | ||
assets: | ||
- static/**/*.* | ||
tests: | ||
- any: ["src/**/*.spec.js", "cypress/**/*"] | ||
package: | ||
- any: ["package.json", "package-lock.json"] | ||
source: | ||
- src/**/* |
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,87 @@ | ||
sources: | ||
npm: true | ||
allowed: | ||
- apache-2.0 | ||
- bsd-2-clause | ||
- bsd-3-clause | ||
- isc | ||
- mit | ||
- cc0-1.0 | ||
- unlicense | ||
reviewed: | ||
npm: | ||
- "@actions/http-client" | ||
- abbrev | ||
- bcrypt-pbkdf | ||
- bin-links | ||
- byline | ||
- cacache | ||
- cidr-regex | ||
- color-convert | ||
- colors | ||
- configstore | ||
- dotenv | ||
- duplexer2 | ||
- duplexer3 | ||
- encoding | ||
- figgy-pudding | ||
- fs.realpath | ||
- gentle-fs | ||
- glob | ||
- ignore | ||
- is-cidr | ||
- jsbn | ||
- libnpm | ||
- libnpmhook | ||
- lodash | ||
- lodash._baseindexof | ||
- lodash._baseuniq | ||
- lodash._bindcallback | ||
- lodash._cacheindexof | ||
- lodash._createcache | ||
- lodash._createset | ||
- lodash._getnative | ||
- lodash._root | ||
- lodash.capitalize | ||
- lodash.clonedeep | ||
- lodash.escaperegexp | ||
- lodash.ismatch | ||
- lodash.isplainobject | ||
- lodash.isstring | ||
- lodash.mergewith | ||
- lodash.restparam | ||
- lodash.toarray | ||
- lodash.union | ||
- lodash.uniq | ||
- lodash.uniqby | ||
- lodash.without | ||
- make-fetch-happen | ||
- marked | ||
- minizlib | ||
- neo-async | ||
- normalize-package-data | ||
- npm | ||
- npm-audit-report | ||
- npm-install-checks | ||
- npm-lifecycle | ||
- npm-logical-tree | ||
- npm-pick-manifest | ||
- npm-registry-fetch | ||
- npm-user-validate | ||
- opener | ||
- path-is-inside | ||
- qs | ||
- rc | ||
- readable-stream | ||
- retry | ||
- sorted-object | ||
- source-map | ||
- spdx-exceptions | ||
- ssri | ||
- string_decoder | ||
- typedarray | ||
- uglify-js | ||
- util-promisify | ||
- wcwidth | ||
- wordwrap | ||
- yargs |
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,35 @@ | ||
name: Merge PRs | ||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
- synchronize | ||
- opened | ||
- edited | ||
- ready_for_review | ||
- reopened | ||
- unlocked | ||
pull_request_review: | ||
types: | ||
- submitted | ||
jobs: | ||
automerge: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Automerge | ||
uses: pascalgn/[email protected] | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GH_PAT }}" | ||
MERGE_LABELS: "merge,!work in progress,!wip" | ||
MERGE_REMOVE_LABELS: "merge" | ||
MERGE_METHOD: "merge" | ||
MERGE_COMMIT_MESSAGE: ":twisted_rightwards_arrows: Merge #{pullRequest.number} ({pullRequest.title})" | ||
MERGE_FORKS: false | ||
UPDATE_LABELS: "merge" | ||
UPDATE_METHOD: "merge" | ||
- name: Delete merged branch | ||
uses: koj-co/delete-merged-action@master | ||
with: | ||
branches: "!master, !production, *" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GH_PAT }}" |
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,35 @@ | ||
name: Build CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Build and publish | ||
runs-on: ubuntu-18.04 | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.GH_PAT }} | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build TypeScript | ||
run: npm run build | ||
- name: Run tests | ||
run: npm run test | ||
- name: Build package | ||
run: npm run package | ||
- name: Publish package | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: ":rocket: Deploy new version [skip ci]" | ||
commit_user_name: Koj Bot | ||
commit_user_email: [email protected] | ||
commit_author: Koj Bot <[email protected]> |
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,26 @@ | ||
name: CLA Assistant | ||
on: | ||
issue_comment: | ||
types: [created] | ||
pull_request_target: | ||
types: [opened, closed, synchronize] | ||
jobs: | ||
claAssistant: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check signed CLA | ||
if: (github.event.comment.body == 'recheckcla' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' | ||
uses: cla-assistant/github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PAT }} | ||
with: | ||
path-to-signatures: cla-signatures.json | ||
path-to-cla-document: https://github.com/koj-co/.github/blob/master/CLA.md | ||
allowlist: dependabot-preview[bot], dependabot[bot], greenkeeper[bot], *bot, bot* | ||
remote-organization-name: koj-co | ||
remote-repository-name: .github | ||
signed-commit-message: ":wrench: @$contributorName has signed the CLA in #$pullRequestNo" | ||
create-file-commit-message: ":wrench: Creating a file for storing CLA signatures" | ||
custom-allsigned-prcomment: "✍️ All contributors have signed the CLA" | ||
custom-notsigned-prcomment: "Thanks for your submission! We ask that $you sign our [Contributor License Agreement]($pathToCLADocument) before we can accept your contribution. You can sign the CLA by adding a comment below using this text:" |
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,20 @@ | ||
name: Feature Branch Pull Request | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- production | ||
jobs: | ||
auto-pull-request: | ||
name: PullRequestAction | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: pull-request-action | ||
uses: vsoch/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
BRANCH_PREFIX: "feature-" | ||
PULL_REQUEST_BRANCH: "master" | ||
PULL_REQUEST_BODY: "🚀 Opening a pull request for this branch" | ||
PULL_REQUEST_REVIEWERS: "AnandChowdhary" | ||
PULL_REQUEST_DRAFT: true |
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,19 @@ | ||
name: Hotfix Branch Pull Request | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- production | ||
jobs: | ||
auto-pull-request: | ||
name: PullRequestAction | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: pull-request-action | ||
uses: vsoch/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
BRANCH_PREFIX: "hotfix-" | ||
PULL_REQUEST_BRANCH: "production" | ||
PULL_REQUEST_BODY: "🚀 Opening a pull request for this branch" | ||
PULL_REQUEST_REVIEWERS: "AnandChowdhary" |
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,18 @@ | ||
name: Pull Request Labeler | ||
on: | ||
- pull_request | ||
- pull_request_review | ||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Label all PRs | ||
uses: actions/labeler@master | ||
with: | ||
repo-token: "${{ secrets.GH_PAT }}" | ||
- name: Label approved PRs | ||
uses: koj-co/label-approved-action@master | ||
with: | ||
labels: "merge" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GH_PAT }}" |
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,35 @@ | ||
name: License CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Check licenses | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Setup license | ||
uses: jonabc/[email protected] | ||
with: | ||
version: 2.x | ||
- run: npm ci | ||
- id: licensed | ||
uses: jonabc/licensed-ci@v1 | ||
with: | ||
config_file: .github/licensed.yml | ||
github_token: ${{ secrets.GH_PAT }} | ||
user_name: "Koj Bot" | ||
user_email: "[email protected]" | ||
commit_message: ":page_facing_up: Update dependency license file" | ||
- uses: actions/github-script@v3 | ||
if: always() && steps.licensed.outputs.pr_number | ||
with: | ||
github-token: ${{ secrets.GH_PAT }} | ||
script: | | ||
github.issues.createComment({ | ||
...context.repo, | ||
issue_number: ${{ steps.licensed.outputs.pr_number }} | ||
body: "I've checked the license of your new dependency and it looks good!" | ||
}) |
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,23 @@ | ||
name: Node CI | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
jobs: | ||
release: | ||
name: Build and test | ||
runs-on: ubuntu-18.04 | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build TypeScript | ||
run: npm run build | ||
- name: Run tests | ||
run: npm run test |
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,27 @@ | ||
name: Release CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Build, test, and release | ||
runs-on: ubuntu-18.04 | ||
if: "contains(github.event.head_commit.message, 'Deploy new version')" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.GH_PAT }} | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release |
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,18 @@ | ||
name: Test CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
test: | ||
name: Test action | ||
runs-on: ubuntu-18.04 | ||
if: "contains(github.event.head_commit.message, 'Deploy new version')" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: ./ | ||
with: | ||
milliseconds: 1000 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.