ci: fix runner image deprecated error #198
Workflow file for this run
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: Lighthouse CI | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Triggers the workflow when pull request is opened or updated | |
pull_request: | |
types: [opened, synchronize, reopened, labeled] | |
jobs: | |
lighthouseci: | |
# Run this job if labeled with 'ci-lighthouse' | |
if: ${{ github.event.label.name == 'ci-lighthouse' }} | |
runs-on: ubuntu-latest | |
steps: | |
#ref: https://github.com/actions/starter-workflows/tree/main/pages | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 | |
with: | |
ruby-version: '3.1' # Not needed with a .ruby-version file | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
cache-version: 0 # Increment this number if you need to re-download cached gems | |
# Fix gemfile not found issue | |
- name: Bundle init | |
run: bundle init && bundle add jekyll | |
# Lighthiuse CI | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm install -g @lhci/cli@0.11.x | |
# Collect Lighthouse results | |
- run: lhci autorun | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} |