Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto stash before rebase of "feature/lighthouse" onto "origin/main" #32

Merged
merged 8 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/firebase-hosting-pull-request.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
on: pull_request
jobs:
build_and_preview:
name: 'Build web and deploy preview'
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
id: action-hosting-deploy
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SU_MAINWEB }}'
projectId: su-mainweb
outputs:
urls: ${{ steps.action-hosting-deploy.outputs.urls }}
lighthouse:
name: 'Run lighthouse check on preview'
runs-on: ubuntu-latest
needs: build_and_preview
steps:
- uses: actions/checkout@master
- run: mkdir -p ${{ github.workspace }}/tmp/artifacts
- name: Lighthouse
uses: foo-software/lighthouse-check-action@master
id: lighthouseCheck
with:
urls: ${{ fromJson(needs.build_and_preview.outputs.urls)[0] }}
gitHubAccessToken: '${{ secrets.GITHUB_TOKEN }}'
prCommentEnabled: true
outputDirectory: ${{ github.workspace }}/tmp/artifacts
- name: Upload lighthouse report
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: ${{ github.workspace }}/tmp/artifacts
- name: Verify Lighthouse Check results
uses: foo-software/lighthouse-check-status-action@master
with:
lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }}
minAccessibilityScore: '50'
minBestPracticesScore: '50'
minPerformanceScore: '50'
minSeoScore: '50'
4 changes: 1 addition & 3 deletions src/components/organisms/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ import { SuLogo } from '../atoms/SuLogo';
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 md:gap-8">
<div class="hidden xl:block"></div>
<div class="mt-12 md:mt-0 order-4 xl:order-1">
<h3 id="footer-studentska-unie" class="text-sm font-semibold text-stone-500 tracking-wider uppercase">
Projekty
</h3>
<h3 id="footer-projekty" class="text-sm font-semibold text-stone-500 tracking-wider uppercase">Projekty</h3>
<div class="mt-4 text-stone-600">Již brzy</div>
</div>
<div class="mt-12 md:mt-0 xl:order-2">
Expand Down
Loading