diff --git a/.github/workflows/pr-lighthouse.yml b/.github/workflows/pr-lighthouse.yml new file mode 100644 index 0000000..c7b4894 --- /dev/null +++ b/.github/workflows/pr-lighthouse.yml @@ -0,0 +1,17 @@ +name: Lighthouse-CI + +on: + push: + +jobs: + lighthouse: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - run: | + npm install + npm run build + npm install -g @lhci/cli@0.4.x + lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=./src/.vuepress/dist || echo "Lighthouse CI failed!" + \ No newline at end of file