https://github.com/gupta-ji6/github-actions
Trigger automated lighthouse tests for your repositories on Lighthouse Metrics.
https://github.com/gupta-ji6/github-actions
Last synced: 3 months ago
JSON representation
Trigger automated lighthouse tests for your repositories on Lighthouse Metrics.
- Host: GitHub
- URL: https://github.com/gupta-ji6/github-actions
- Owner: gupta-ji6
- License: mit
- Created: 2020-08-05T06:33:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T06:36:51.000Z (almost 5 years ago)
- Last Synced: 2025-01-24T00:29:09.974Z (5 months ago)
- Homepage:
- Size: 1.29 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## Usage
Create `.github/workflows/main.yml` or extend your workflow with the following code:
```yml
name: CI
on: push
jobs:
trigger-lighthouse-metrics:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Trigger Lighthouse Metrics
uses: lighthouse-metrics/github-actions@master
with:
url: 'https://example.com'
token: {{ secrets.LIGHTHOUSE_METRICS_TOKEN }}
```## Example
See https://github.com/lighthouse-metrics/github-actions-example
## Inputs
#### `url`
Provide the base URL of your deployment.
This URL will be used to run tests for your defined paths inside Lighthouse Metrics. Everything except the protocol (`http://` or `https://`) and the domain will be ignored.```yml
url: 'https://example.com'
```#### `token`
Use your token from the Dashboard after you added your repository.
```yml
token: {{ secrets.LIGHTHOUSE_METRICS_TOKEN }}
```Make sure you store your token as a secret. Read the [GitHub Documentation](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) about using secrets in workflows.