Skip to content

Commit

Permalink
use @v2
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseykulikov committed Nov 11, 2019
1 parent 2b888c6 commit e4f8e79
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/LHCI-assert-on-budget.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: LHCI-assert-on-budget
on: push
jobs:
# This pass/fails a build with a budgets.json.
# This pass/fails a build with a budgets.json.
assert-on-budget:
runs-on: ubuntu-latest
steps:
Expand All @@ -10,4 +10,4 @@ jobs:
uses: ./
with:
urls: 'https://alekseykulikov.com/'
budgetPath: '.github/lighthouse/passable_budget.json'
budgetPath: '.github/lighthouse/passable_budget.json'
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-assert-on-lighthouserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
uses: ./
with:
urls: 'https://exterkamp.codes/'
configPath: '.github/lighthouse/lighthouserc_assertions.json'
configPath: '.github/lighthouse/lighthouserc_assertions.json'
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-hermetic-advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: advanced-hermetic-artifacts
path: '.lighthouseci'
path: '.lighthouseci'
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-hermetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: basic-hermetic-artifacts
path: '.lighthouseci'
path: '.lighthouseci'
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-static-dist-dir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
- name: Run Lighthouse against a static dist dir
uses: ./
with:
configPath: '.github/lighthouse/lighthouserc_static_dist_dir.json'
configPath: '.github/lighthouse/lighthouserc_static_dist_dir.json'
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v1
uses: treosh/lighthouse-ci-action@v2
with:
urls: 'https://example.com/'
# Note: Lighthouse-ci-actions overwrite .lighthouseci/ each run, therefore
Expand Down Expand Up @@ -65,7 +65,7 @@ URLs support interpolation of process env vars, so you can write URLs like:

```yml
- name: Run Lighthouse and test budgets
uses: treosh/lighthouse-ci-action@v1
uses: treosh/lighthouse-ci-action@v2
with:
urls: |
https://pr-$PR_NUMBER.staging-example.com/
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Run Lighthouse on urls and validate with budgets.json
uses: treosh/lighthouse-ci-action@v1
uses: treosh/lighthouse-ci-action@v2
with:
urls: 'https://example.com/'
budgetPath: './budgets.json'
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Run Lighthouse on urls and validate with lighthouserc
uses: treosh/lighthouse-ci-action@v1
uses: treosh/lighthouse-ci-action@v2
with:
urls: 'https://example.com/'
configPath: './lighthouserc.json'
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Run Lighthouse on urls and upload data to private lhci server
uses: treosh/lighthouse-ci-action@v1
uses: treosh/lighthouse-ci-action@v2
with:
urls: 'https://example.com/'
serverBaseUrl: ${{ secrets.LHCI_SERVER }}
Expand Down Expand Up @@ -305,7 +305,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Run Lighthouse on urls with lighthouserc
uses: treosh/lighthouse-ci-action@v1
uses: treosh/lighthouse-ci-action@v2
with:
urls: 'https://example.com/'
configPath: './lighthouserc.json'
Expand Down Expand Up @@ -379,7 +379,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Run Lighthouse against a static dist dir
uses: treosh/lighthouse-ci-action@v1
uses: treosh/lighthouse-ci-action@v2
with:
configPath: './lighthouserc.json'
```
Expand Down Expand Up @@ -408,7 +408,7 @@ against each of them. More details on this process are in the [Lighthouse CI doc

## Credits

Sponsored by [Treo.sh - Page speed monitoring made easy](https://treo.sh) and [Google](https://google.com/).
Sponsored by [Treo](https://treo.sh) and [Google](https://google.com/).

[![](https://github.com/exterkamp/lighthouse-ci-action/workflows/CI/badge.svg)](https://github.com/treosh/lighthouse-ci-action/actions?workflow=CI)
[![](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)

0 comments on commit e4f8e79

Please sign in to comment.