-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
a8b126f
commit 60fec87
Showing
13 changed files
with
504 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,46 @@ | ||
name: BrowserStack | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
- "!dependabot/**" | ||
workflow_dispatch: | ||
|
||
env: | ||
FORCE_COLOR: 2 | ||
NODE: 20 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
browserstack: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'twbs/bootstrap' | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ env.NODE }}" | ||
cache: npm | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Run dist | ||
run: npm run dist | ||
|
||
- name: Run BrowserStack tests | ||
run: npm run js-test-cloud | ||
env: | ||
BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}" | ||
BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}" | ||
GITHUB_SHA: "${{ github.sha }}" |
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: Bundlewatch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
FORCE_COLOR: 2 | ||
NODE: 20 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
bundlewatch: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ env.NODE }}" | ||
cache: npm | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Run dist | ||
run: npm run dist | ||
|
||
- name: Run bundlewatch | ||
run: npm run bundlewatch | ||
env: | ||
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}" | ||
CI_BRANCH_BASE: main |
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: Compress Images | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.jpg' | ||
- '**.jpeg' | ||
- '**.png' | ||
- '**.webp' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
# Only run on Pull Requests within the same repository, and not from forks. | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
name: calibreapp/image-actions | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# allow calibreapp/image-actions to update PRs | ||
pull-requests: write | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Compress Images | ||
uses: calibreapp/[email protected] | ||
with: | ||
githubToken: ${{ secrets.GITHUB_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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- v4-dev | ||
- "!dependabot/**" | ||
pull_request: | ||
branches: | ||
- main | ||
- v4-dev | ||
- "!dependabot/**" | ||
schedule: | ||
- cron: "0 2 * * 4" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
security-events: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
config-file: ./.github/codeql/codeql-config.yml | ||
languages: "javascript" | ||
queries: +security-and-quality | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v3 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:javascript" |
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,36 @@ | ||
name: cspell | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
FORCE_COLOR: 2 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
cspell: | ||
permissions: | ||
# allow streetsidesoftware/cspell-action to fetch files for commits and PRs | ||
contents: read | ||
pull-requests: read | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Run cspell | ||
uses: streetsidesoftware/cspell-action@v6 | ||
with: | ||
config: ".cspell.json" | ||
files: "**/*.md" | ||
inline: error | ||
incremental_files_only: 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,40 @@ | ||
name: CSS | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
FORCE_COLOR: 2 | ||
NODE: 20 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
css: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ env.NODE }}" | ||
cache: npm | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Build CSS | ||
run: npm run css | ||
|
||
- name: Run CSS tests | ||
run: npm run css-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,50 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
FORCE_COLOR: 2 | ||
NODE: 20 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ env.NODE }}" | ||
cache: npm | ||
|
||
- run: java -version | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Build docs | ||
run: npm run docs-build | ||
|
||
- name: Validate HTML | ||
run: npm run docs-vnu | ||
|
||
- name: Run linkinator | ||
uses: JustinBeckwith/linkinator-action@v1 | ||
with: | ||
paths: _site | ||
recurse: true | ||
verbosity: error | ||
skip: "^(?!http://localhost)" |
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: Close Issue Awaiting Reply | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-close-require: | ||
permissions: | ||
# allow actions-cool/issues-helper to update issues and PRs | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'twbs/bootstrap' | ||
steps: | ||
- name: awaiting reply | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: "close-issues" | ||
labels: "awaiting-reply" | ||
inactive-day: 14 | ||
body: | | ||
As the issue was labeled with `awaiting-reply`, but there has been no response in 14 days, this issue will be closed. If you have any questions, you can comment/reply. |
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: Issue Labeled | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
issue-labeled: | ||
permissions: | ||
# allow actions-cool/issues-helper to update issues and PRs | ||
issues: write | ||
pull-requests: write | ||
if: github.repository == 'twbs/bootstrap' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: awaiting reply | ||
if: github.event.label.name == 'needs-example' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: "create-comment" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
Hello @${{ github.event.issue.user.login }}. Bug reports must include a **live demo** of the issue. Per our [contributing guidelines](https:/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md), please create a reduced test case on [CodePen](https://codepen.io/) or [StackBlitz](https://stackblitz.com/) and report back with your link, Bootstrap version, and specific browser and Operating System details. |
Oops, something went wrong.