forked from primer/octicons
-
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 branch 'main' into dependabot/npm_and_yarn/docs/ssri-6.0.2
- Loading branch information
Showing
100 changed files
with
27,247 additions
and
39,782 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
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,165 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- run: yarn | ||
- name: Building | ||
run: yarn build | ||
- run: cp -r icons lib/build/svg | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: octicons-build | ||
path: ./lib/build | ||
|
||
main: | ||
name: Main project | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: octicons-build | ||
path: ./lib/build | ||
- run: yarn | ||
- name: Lint | ||
run: yarn lint | ||
- name: Test | ||
run: yarn test | ||
|
||
octicons_node: | ||
name: 'npm:@primer/octicons' | ||
needs: build | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./lib/octicons_node | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: octicons-build | ||
path: ./lib/build | ||
- run: yarn | ||
- name: Building | ||
run: yarn build | ||
- name: Lint | ||
run: yarn lint | ||
- name: Test | ||
run: yarn test | ||
|
||
octicons_react: | ||
name: 'npm:@primer/octicons-react' | ||
needs: build | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./lib/octicons_react | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: octicons-build | ||
path: ./lib/build | ||
- run: yarn | ||
- name: Building | ||
run: yarn build | ||
- name: Lint | ||
run: yarn lint | ||
- name: Test | ||
run: yarn test | ||
|
||
octicons_gem: | ||
name: 'gem:octicons' | ||
needs: build | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./lib/octicons_gem | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: octicons-build | ||
path: ./lib/octicons_gem/lib/build | ||
- run: bundle install | ||
- name: Linting | ||
run: bundle exec rake lint | ||
- name: Testing | ||
run: bundle exec rake test | ||
- name: Build | ||
run: bundle exec rake build | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: octicons-gem | ||
path: ./lib/octicons_gem/pkg | ||
|
||
octicons_helper: | ||
name: 'gem:octicons_helper' | ||
needs: octicons_gem | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./lib/octicons_helper | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: octicons-gem | ||
path: ./lib/octicons_helper/vendor/cache | ||
- run: bundle install | ||
- name: Linting | ||
run: bundle exec rake lint | ||
- name: Testing | ||
run: bundle exec rake test | ||
|
||
octicons_jekyll: | ||
name: 'gem:octicons_jekyll' | ||
needs: octicons_gem | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./lib/octicons_jekyll | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: octicons-gem | ||
path: ./lib/octicons_jekyll/vendor/cache | ||
- run: bundle install | ||
- name: Linting | ||
run: bundle exec rake lint | ||
- name: Testing | ||
run: bundle exec rake 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,52 @@ | ||
name: Deploy | ||
on: | ||
push: | ||
branches-ignore: | ||
- 'main' | ||
- 'dependabot/**' | ||
paths: | ||
- 'lib/**' | ||
- 'icons/**' | ||
- 'docs/**' | ||
- '.github/workflows/deploy*.yml' | ||
- 'package.json' | ||
jobs: | ||
deploy-preview: | ||
if: ${{ github.repository == 'primer/octicons' }} | ||
name: Preview | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: chrnorm/[email protected] | ||
name: Create GitHub deployment | ||
id: deployment | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
environment: Preview | ||
|
||
- name: Vercel Action | ||
uses: amondnet/vercel-action@v20 | ||
id: vercel-action | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
vercel-token: ${{ secrets.VERCEL_TOKEN_SHARED }} | ||
github-comment: false | ||
vercel-org-id: ${{ secrets.VERCEL_ORG_ID_SHARED }} | ||
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} | ||
|
||
- name: Update deployment status (success) | ||
if: success() | ||
uses: chrnorm/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
environment_url: ${{ steps.vercel-action.outputs.preview-url }} | ||
state: "success" | ||
deployment_id: ${{ steps.deployment.outputs.deployment_id }} | ||
|
||
- name: Update deployment status (failure) | ||
if: failure() | ||
uses: chrnorm/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
state: "failure" | ||
deployment_id: ${{ steps.deployment.outputs.deployment_id }} |
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,29 @@ | ||
name: Deploy | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'lib/**' | ||
- 'icons/**' | ||
- 'docs/**' | ||
- '.github/workflows/deploy*.yml' | ||
- 'package.json' | ||
jobs: | ||
deploy: | ||
if: ${{ github.repository == 'primer/octicons' }} | ||
name: Production | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Vercel Action | ||
uses: amondnet/vercel-action@v20 | ||
id: vercel-action | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
vercel-token: ${{ secrets.VERCEL_TOKEN_SHARED }} | ||
vercel-args: '--prod' | ||
github-comment: false | ||
vercel-org-id: ${{ secrets.VERCEL_ORG_ID_SHARED }} | ||
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} |
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,4 +1,8 @@ | ||
on: push | ||
on: | ||
push: | ||
paths: | ||
- 'icons/**' | ||
- '.github/workflows/optimize.yml' | ||
name: Optimize SVGs | ||
jobs: | ||
optimize: | ||
|
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: Stale | ||
on: | ||
schedule: | ||
- cron: '0 * * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v4 | ||
with: | ||
|
||
# General settings | ||
days-before-stale: 60 | ||
days-before-close: 7 | ||
enable-statistics: true | ||
operations-per-run: 100 | ||
remove-stale-when-updated: true | ||
|
||
# PR specific settings | ||
delete-branch: true | ||
stale-pr-message: "Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days." | ||
|
||
# Issue specific settings | ||
days-before-issue-stale: 180 | ||
stale-issue-message: "Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days." |
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,5 @@ | ||
*.gem | ||
*.lock | ||
/package-lock.json | ||
*.log | ||
.DS_Store | ||
.bundle | ||
|
@@ -15,4 +15,4 @@ public | |
.cache | ||
|
||
# Now | ||
.now | ||
.now |
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 @@ | ||
save-exact=true | ||
package-lock=false |
Oops, something went wrong.