From 008c0bcae3e7ee1d5197d716b96a922659989681 Mon Sep 17 00:00:00 2001 From: Sunghyun627 Date: Thu, 1 Aug 2024 11:11:02 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20mkcert=EB=A5=BC=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EC=97=AC=20HTTPS=EB=A5=BC=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EB=8A=94=20step=20=EC=B6=94=EA=B0=80=20(SP-668)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lighthouse.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 7ad1a319..68b91405 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -24,6 +24,31 @@ jobs: - name: Install dependencies run: | yarn install --immutable --immutable-cache --check-cache + + - name: Install mkcert and set up certificates + run: | + sudo apt-get update + sudo apt-get install -y libnss3-tools + curl -JLO https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64 + chmod +x mkcert-v1.4.4-linux-amd64 + sudo mv mkcert-v1.4.4-linux-amd64 /usr/local/bin/mkcert + mkcert -install + mkcert local.ludo.study + + - name: Build the project + run: | + yarn build + + - name: Start server + run: | + # Export environment variables for mkcert + export SSL_CRT_FILE=cert/local.ludo.study.pem + export SSL_KEY_FILE=cert/local.ludo.study-key.pem + export HOST=0.0.0.0 + export HTTPS=true + + # Start the server using the existing start:mac command + yarn start:mac - name: Build run: |