diff --git a/.github/budget.json b/.github/budget.json new file mode 100644 index 000000000..5cc108f4e --- /dev/null +++ b/.github/budget.json @@ -0,0 +1,13 @@ +{ + "budget": { + "thirdParty": { + "requests": 0 + }, + "score": { + "bestpractice": 100, + "privacy": 100, + "performance": 98 + } + } + } + \ No newline at end of file diff --git a/.github/workflows/sitespeed-io-action-example.yml b/.github/workflows/sitespeed-io-action-example.yml new file mode 100644 index 000000000..7f4ed5cab --- /dev/null +++ b/.github/workflows/sitespeed-io-action-example.yml @@ -0,0 +1,21 @@ +name: sitespeed.io action example +on: + push: + branches: + - main +jobs: + run-sitespeed: + runs-on: ubuntu-latest + name: running sitespeed.io + steps: + - name: code checkout + uses: actions/checkout@v2 + # Here we build our own container to make sure we test against our latest code + # but YOU can just used the latest version by specifying + # sitespeedio/sitespeed.io:VERSION + - name: Build Docker containers + run: | + docker buildx install + docker buildx build --load --platform linux/amd64 -t sitespeedio/sitespeed.io . + - name: running sitespeed.io container with arguments and optional Docker options + run: docker run -v "$(pwd):/sitespeed.io" sitespeedio/sitespeed.io https://www.sitespeed.io --budget.configPath .github/budget.json -n 1 \ No newline at end of file