-
Notifications
You must be signed in to change notification settings - Fork 30
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 #288 from dequelabs/release-4.6.0
- Loading branch information
Showing
13 changed files
with
258 additions
and
35 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 |
---|---|---|
|
@@ -9,7 +9,6 @@ orbs: | |
browser-tools: circleci/[email protected] | ||
node: circleci/[email protected] | ||
|
||
|
||
commands: | ||
bootstrap: | ||
description: Install dependencies and bootstrap packages | ||
|
@@ -22,7 +21,7 @@ commands: | |
- run: rake bootstrap # bootstrap packages | ||
|
||
jobs: | ||
test: | ||
test: | ||
<<: *defaults | ||
steps: | ||
- bootstrap | ||
|
@@ -80,11 +79,22 @@ jobs: | |
chmod +x ./ruby-github-release.sh | ||
./ruby-github-release.sh | ||
check_license: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '16.13' | ||
- bootstrap | ||
- run: bash .circleci/print_license.sh | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- test | ||
- check_license: | ||
context: html-tools | ||
- canary_release: | ||
requires: | ||
- 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,40 @@ | ||
#!/bin/bash | ||
|
||
for dir in packages/*; do | ||
cd "$dir" | ||
|
||
echo "" | ||
echo "" | ||
echo "" | ||
echo "" | ||
echo "Printing dependencies for $dir" | ||
|
||
bundle exec ruby > licenses <<RUBY | ||
licenses = {} | ||
Gem.loaded_specs.each do |name, spec| | ||
license = spec.license | ||
if not licenses.key?(license) | ||
licenses[license] = [] | ||
end | ||
licenses[license].push(name) | ||
end | ||
licenses.each do |license, names| | ||
puts license | ||
names.each do |name| | ||
puts "\t#{name}" | ||
end | ||
puts "" | ||
end | ||
RUBY | ||
cat licenses | ||
# Matches words at the beginning of the line that contain "gpl". | ||
# We add a tab to package names so this prevents false-positives. | ||
cat licenses | grep -i -P '^[^\s]*gpl' | ||
result=$? | ||
if [ $result -eq 0 ]; then | ||
echo "Discovered a dependency using the GPL license" | ||
exit 1 | ||
fi | ||
|
||
cd - | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Semantic PR title | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
semantic-pr-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dequelabs/semantic-pr-title@v1 |
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,38 @@ | ||
name: Update axe-core | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- id: update | ||
uses: dequelabs/update-axe-core@v1 | ||
- id: type | ||
run: | | ||
CommitType="" | ||
if [ "${{ steps.update.outputs.patch_version_updated }}" == "true" ]; then | ||
CommitType="fix" | ||
elif [ "${{ steps.update.outputs.minor_version_updated }}" == "true" ]; then | ||
CommitType="feat" | ||
elif [ "${{ steps.update.outputs.major_version_updated }}" == "true" ]; then | ||
CommitType="feat" | ||
fi | ||
echo "type=$CommitType" >>"$GITHUB_OUTPUT" | ||
- name: Open PR | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
commit-message: '${{ steps.type.outputs.type }}: Update axe-core to v${{ steps.update.outputs.version }}' | ||
branch: auto-update-axe-core | ||
base: develop | ||
title: '${{ steps.type.outputs.type }}: Update axe-core to v${{ steps.update.outputs.version }}' | ||
body: | | ||
This patch updates version of [`axe-core`](https://npmjs.org/axe-core) to v${{ steps.update.outputs.version }}. | ||
This PR was opened by a robot :robot: :tada:. |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.