Skip to content

Commit

Permalink
Make the github action linter step fail in the case of issues (#374)
Browse files Browse the repository at this point in the history
* Make the github action linter step fail in the case of issues

* Run the formatter on the project
  • Loading branch information
julienw authored Feb 17, 2024
1 parent 3d78224 commit ca9d23c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ jobs:
- name: Run linters
run: |
npm run format
- name: Check if anything changed
run: |
git_status="`LC_ALL=C git status --porcelain --ignore-submodules -unormal 2>&1`"
if [ -n "$git_status" ]; then
printf "Some file(s) changed as the result of formatting, this means that you need to run the formatter on your patch.\n"
printf "Here is what changed:\n"
printf -- "$git_status\n\n"
printf "And here is the diff:\n"
git diff -U8
exit 1
fi
build:
name: Build
runs-on: macos-latest
Expand Down
5 changes: 4 additions & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
<h1 class="section-header">About Speedometer 3</h1>
<div class="section-content">
<p>Speedometer 3 is a benchmark for web browsers that measures Web application responsiveness by timing simulated user interactions on various workloads.</p>
<p>It's developed as an open source project, with decisions being made under a <a href="https://github.com/WebKit/Speedometer/blob/main/Governance.md">multistakeholder governance model</a> between the three widely distributed web browser engine projects.
<p>
It's developed as an open source project, with decisions being made under a <a href="https://github.com/WebKit/Speedometer/blob/main/Governance.md">multistakeholder governance model</a> between the three widely distributed
web browser engine projects.
</p>
<p>
The following high level user journeys are implemented in the current version. Each of these journeys has one or more workloads which test important aspects of it - for example commonly used patterns, frameworks, or
technologies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@
}
},
"cli": {
"analytics": false
"analytics": false
}
}

0 comments on commit ca9d23c

Please sign in to comment.