From d0be4b802536a61d952e5aeae358910bc9469ef8 Mon Sep 17 00:00:00 2001 From: Ivan Martinez Date: Sun, 4 Feb 2024 00:17:34 -0400 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..c2c92bcd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Frontend Performance Analysis + +on: + schedule: + - cron: '20 0 * * *' + +jobs: + analyze_frontend_performance: + runs-on: ubuntu-18.04 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install Lighthouse + run: npm install -g lighthouse + + - name: Run Lighthouse + run: lighthouse https://web-tau-opal.vercel.app/ --output json --output html --output-path report_$(date +'%Y-%m-%d').html --chrome-flags="--headless"