File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5757 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5858 SEGMENT_KEY : ${{ secrets.SEGMENT_KEY }}
5959 - run : npm run test:int
60- if : " github.ref_name != 'main'"
6160 env :
6261 CI : true
62+ PATH_PREFIX : " ${{ github.ref_name == 'main' && 'extensions' || '' }}"
6363 PATH_PREFIX_FLAG : " ${{ github.ref_name == 'main' && '--prefix-paths' || '' }}"
6464 - name : Deploy
6565 if : " github.repository == 'quarkusio/extensions' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')"
Original file line number Diff line number Diff line change 11const { segmentSnippet } = require ( "./src/analytics/segment-snippet.js" )
22
33module . exports = {
4- pathPrefix : "extensions" ,
4+ pathPrefix : "/ extensions" ,
55
66 siteMetadata : {
77 title : `Extensions` ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ require("dotenv").config()
55
66module . exports = {
77 server : {
8- command : `./node_modules/.bin/gatsby serve ${ process . env . PATH_PREFIX_FLAG } ` ,
8+ command : `./node_modules/.bin/gatsby serve ${ process . env . PATH_PREFIX_FLAG || "" } ` ,
99 // The protocol, host and port are used to check when your application
1010 // is ready to accept requests. Your tests will start running as soon as
1111 // the port on that host and protocol are available.
@@ -17,6 +17,7 @@ module.exports = {
1717 // your application requires more time to boot.
1818 launchTimeout : 45000 ,
1919 debug : true ,
20+ path : process . env . PATH_PREFIX || "/" ,
2021 } ,
2122 launch : {
2223 defaultViewport : {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ jest.setTimeout(25 * 1000)
22
33const { port } = require ( "../jest-puppeteer.config" ) . server
44
5- const siteRoot = `http://localhost:${ port } `
5+ const siteRoot = `http://localhost:${ port } / ${ process . env . PATH_PREFIX } `
66
77describe ( "main site" , ( ) => {
88 beforeAll ( async ( ) => {
Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ const { curly } = require("node-libcurl")
66const promiseRetry = require ( "promise-retry" )
77
88const config = require ( "../gatsby-config.js" )
9+ const { port } = require ( "../jest-puppeteer.config" ) . server
910
1011describe ( "site links" , ( ) => {
1112 const deadExternalLinks = [ ]
1213 const deadInternalLinks = [ ]
1314
1415 beforeAll ( async ( ) => {
15- const path = " http://localhost:9000"
16+ const path = ` http://localhost:${ port } / ${ process . env . PATH_PREFIX } `
1617
1718 // create a new `LinkChecker` that we'll use to run the scan.
1819 const checker = new link . LinkChecker ( )
You can’t perform that action at this time.
0 commit comments