first draft of unit test for Userprofile #279
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --omit=optional | |
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/[email protected] | |
lhci autorun | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} |