diff --git a/.github/workflows/lighthouse-ci.yaml b/.github/workflows/lighthouse-ci.yaml new file mode 100644 index 00000000..c49ce2d5 --- /dev/null +++ b/.github/workflows/lighthouse-ci.yaml @@ -0,0 +1,27 @@ +name: Build project and run Lighthouse CI +on: [push] +jobs: + lighthouse_ci: + name: Lighthouse CI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + - name: npm ci + run: | + npm ci + npm run build + - name: Install chrome + run: | + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + sudo apt-get update + sudo apt-get install -y ./google-chrome-stable_current_amd64.deb + - name: Run Lighthouse CI + run: | + npm install -g @lhci/cli@0.11.x + lhci autorun + env: + LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} \ No newline at end of file diff --git a/client/src/components/Header/Header.js b/client/src/components/Header/Header.js index 70021ee6..0b52aa3e 100644 --- a/client/src/components/Header/Header.js +++ b/client/src/components/Header/Header.js @@ -41,6 +41,7 @@ const Header = () => { }} color="success" className="header__btn-menu" + title="Menu" > - + diff --git a/client/src/pages/NewTree/NewTreeButton.js b/client/src/pages/NewTree/NewTreeButton.js index 0d9c7d38..0fec8d5b 100644 --- a/client/src/pages/NewTree/NewTreeButton.js +++ b/client/src/pages/NewTree/NewTreeButton.js @@ -84,6 +84,7 @@ export default function NewTreeButton({ map }) { value="Plant" selected={isPlanting} onChange={handlePlantClick} + title="Plant New Tree" /> {map && } diff --git a/client/src/pages/UserLocation/GeolocateControl.js b/client/src/pages/UserLocation/GeolocateControl.js index 96a22c52..ec082c06 100644 --- a/client/src/pages/UserLocation/GeolocateControl.js +++ b/client/src/pages/UserLocation/GeolocateControl.js @@ -60,7 +60,7 @@ export default function GeolocateControl({ map }) { return ( <> - + spec renders Header correctly 1`] = `