Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
directory: "/"
schedule:
interval: "weekly"
# Maintain dependencies for node
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
26 changes: 26 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/release.yml
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes

changelog:
exclude:
labels:
- ignore-for-release
- documentation
authors:
- octocat
- github-actions
categories:
- title: Breaking Changes 🛠
labels:
- Semver-Major
- breaking-change
- title: Exciting New Features 🎉
labels:
- Semver-Minor
- enhancement
- title: Bug Fixes
labels:
- bug
- title: Other Changes
labels:
- "*"
43 changes: 43 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# https://github.com/softprops/action-gh-release
name: Create Release
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "package.json"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # [!] we need to checkout with tags and commit history
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- name: 📋 Get Commits since last Release
id: changes
uses: simbo/changes-since-last-release-action@v1.0.1
with:
line-prefix: "* "
include-hashes: false
- name: Generate new release version
id: newversion
run: python tools/release.py -l "${{ steps.changes.outputs.last-tag }}"
- name: GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: "${{ env.NEW_VERSION }}"
make_latest: "true"
generate_release_notes: true
- name: NPM Release (version specific)
uses: JS-DevTools/npm-publish@v4
with:
token: ${{ secrets.NPM_TOKEN }}
41 changes: 41 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run plugin on Linux
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: '20.x'
- name: Install latest Chrome
run: |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get --only-upgrade install google-chrome-stable
google-chrome --version
- name: Browser versions
run: |
google-chrome --version
- name: Install dependencies
run: npm install
- name: Install sitespeed.io
run: npm install sitespeed.io -g
- name: Lint
run: npm run lint
- name: Run unit tests (network-free)
run: npm test
- name: Start local HTTP server
run: (npm run start-server&)
- name: Show sitespeed.io version
run: sitespeed.io --version
- name: Run tests using plugin
run: sitespeed.io --plugins.add ./lib/index.js --browsertime.chrome.includeResponseBodies all --xvfb -n 1 http://127.0.0.1:3000/
48 changes: 48 additions & 0 deletions .github/workflows/prep-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# https://github.com/simbo/changes-since-last-release-action
name: Prepare Release
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "lib/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # [!] we need to checkout with tags and commit history
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- name: 📋 Get Commits since last Release
id: changes
uses: simbo/changes-since-last-release-action@v1.0.1
with:
line-prefix: "* "
include-hashes: false
- name: Generate new release version
id: newversion
run: python tools/release.py -u "${{ steps.changes.outputs.last-tag }}"
- name: Create pull request
uses: peter-evans/create-pull-request@v8
with:
commit-message: Updated version in package.json to latest
branch: update-version-in-package-json
title: "Prepare release - ${{ env.NEW_VERSION }}"
body: |
Approving this PR triggers creation of a new release.

Changes since ${{ steps.changes.outputs.last-tag }}:
${{ steps.changes.outputs.log }}
assignees: 7h3Rabbit
reviewers: 7h3Rabbit
add-paths: |
package.json
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules
*.log
*.iml
.vscode
sitespeed-result
configs
docs/_site
yarn.lock
.tern-project
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.mypy_cache/
.DS_Store
.editorconfig
.gitattributes
.github
node_modules
tools
sitespeed-result
package-lock.json
requirements.txt
tmp
cache
NOTES.md
Loading
Loading