-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reapply "Reapply "Merge branch 'main' into dev""
This reverts commit 612c43f.
- Loading branch information
1 parent
612c43f
commit c7d2433
Showing
80 changed files
with
2,086 additions
and
522 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ on: | |
jobs: | ||
script: | ||
name: Script | ||
runs-on: ubuntu-latest | ||
runs-on: self-hosted | ||
environment: ${{ inputs.environment }} | ||
steps: | ||
- uses: appleboy/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,6 @@ public/robots.txt | |
|
||
# data | ||
/data | ||
|
||
# Ignore husky files, see PR #54 | ||
/.husky/* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
// Use type safe message keys with `next-intl` | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-imports | ||
type Messages = typeof import('./messages/en.json'); | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
declare interface IntlMessages extends Messages {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
pre-commit: | ||
commands: | ||
check: | ||
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}" | ||
glob: "*.{js,ts,tsx,json}" | ||
stage_fixed: true | ||
run: bunx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
const PAGES_EXCLUDED = ['news', 'storage']; | ||
|
||
// Do not convert into an ES6 export. | ||
// lighthouse-ci (as of 0.14.0) uses require() to import, and this is not supported with ES6 modules. | ||
module.exports = { | ||
ci: { | ||
collect: { | ||
url: [ | ||
'http://localhost:3000/en/', // Trailing slash required, else the regex for default lighthouse rules won't catch this one | ||
'http://localhost:3000/en/about', | ||
'http://localhost:3000/en/events', | ||
'http://localhost:3000/en/news', | ||
'http://localhost:3000/en/news/1', | ||
'http://localhost:3000/en/storage', | ||
'http://localhost:3000/en/storage/shopping-cart', | ||
], | ||
startServerCommand: 'bun run start', | ||
}, | ||
upload: { | ||
target: 'lhci', | ||
serverBaseUrl: 'https://lhci.hackerspace-ntnu.no', // build token is set by the GH Action | ||
}, | ||
assert: { | ||
assertMatrix: [ | ||
{ | ||
matchingUrlPattern: `http://.*/en/(?!${PAGES_EXCLUDED.join('|')}).*`, // match all routes, except for pages with special rules. See https://github.com/GoogleChrome/lighthouse-ci/issues/511 and https://github.com/GoogleChrome/lighthouse-ci/issues/208#issuecomment-784501105 | ||
preset: 'lighthouse:recommended', | ||
assertions: { | ||
'bf-cache': 'off', | ||
'color-contrast': 'off', | ||
'heading-order': 'off', | ||
'largest-contentful-paint': 'off', | ||
'render-blocking-resources': 'off', | ||
}, | ||
}, | ||
{ | ||
matchingUrlPattern: 'http://.*/en/news.*', | ||
preset: 'lighthouse:recommended', | ||
assertions: { | ||
'bf-cache': 'off', | ||
'color-contrast': 'off', | ||
'heading-order': 'off', | ||
'largest-contentful-paint': 'off', | ||
'render-blocking-resources': 'off', | ||
interactive: 'off', | ||
'uses-responsive-images': 'off', // Should be removed when we obtain images from backend | ||
}, | ||
}, | ||
{ | ||
matchingUrlPattern: 'http://.*/en/storage.*', | ||
preset: 'lighthouse:recommended', | ||
assertions: { | ||
'bf-cache': 'off', | ||
'color-contrast': 'off', | ||
'heading-order': 'off', | ||
'largest-contentful-paint': 'off', | ||
'render-blocking-resources': 'off', | ||
'unused-javascript': 'off', | ||
'cumulative-layout-shift': 'off', // We don't always know how many items are in the cart, which can lead to layout shifts when loading completes | ||
'max-potential-fid': 'off', | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.