forked from select2/select2
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #24 from databox/improvement/fork-test-merge
Merge from forked repo
- Loading branch information
Showing
645 changed files
with
51,537 additions
and
10,421 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,2 @@ | ||
github: kevin-brown | ||
open_collective: select2 |
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,14 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
# Label to use when marking an issue as stale | ||
staleLabel: "status: stale" | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: 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,24 @@ | ||
name: Documentation Deployment | ||
|
||
on: release | ||
|
||
jobs: | ||
grav: | ||
name: Deploy Grav | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: maddox/actions/sleep@master | ||
with: | ||
args: "60" | ||
- uses: actions/checkout@v1 | ||
- name: Copy to documentation server | ||
uses: maxheld83/[email protected] | ||
env: | ||
USERNAME: ${{ secrets.DOCUMENTATION_SSH_USERNAME }} | ||
SSH_PRIVATE_KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }} | ||
HOST_NAME: ${{ secrets.DOCUMENTATION_SSH_HOST }} | ||
SSH_PUBLIC_KEY: not-needed | ||
HOST_IP: not-needed | ||
HOST_FINGERPRINT: not-needed | ||
with: | ||
args: "docs/ $USERNAME@$HOST_NAME:/var/www/select2-docs/user/" |
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,44 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
linting: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 8 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
- name: npm install | ||
run: npm install | ||
- name: Run linting | ||
run: grunt compile lint | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 8 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
- name: npm install | ||
run: npm install | ||
- name: Run tests | ||
run: grunt compile test | ||
minification: | ||
name: Minification | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 8 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
- name: npm install | ||
run: npm install | ||
- name: Run minification | ||
run: grunt compile minify |
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,57 @@ | ||
name: Package Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
release: ~ | ||
|
||
jobs: | ||
deploy_github: | ||
name: GitHub Package Registry | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 8 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
registry-url: https://npm.pkg.github.com/ | ||
scope: '@select2' | ||
- name: Rename package to include private scope | ||
run: "sed -i -e 's#\"name\": \"select2\"#\"name\": \"@select2/select2\"#' package.json" | ||
- name: npm install | ||
run: npm install | ||
- name: Run linting, tests, minify | ||
run: grunt | ||
- name: Deploy (release) | ||
if: github.event_name == 'release' | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Deploy (release candidate) | ||
if: github.event_name == 'push' | ||
run: 'sed -i -E "s/\"version\": \"(.+)\",/\"version\": \"\1-commit-$GITHUB_SHA\",/" package.json && npm publish --tag next' | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
GITHUB_SHA: ${{github.sha}} | ||
deploy_npm: | ||
name: NPM | ||
if: github.event_name == 'release' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 8 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: npm install | ||
run: npm install | ||
- name: Run linting, tests, minify | ||
run: grunt | ||
- name: Deploy (release) | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
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,3 +1,4 @@ | ||
node_modules | ||
dist/js/i18n/build.txt | ||
.sass-cache | ||
.idea |
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
Oops, something went wrong.