From 623554d45cdc837105c33878035325e95ae7e378 Mon Sep 17 00:00:00 2001 From: ojii3 <84656786+OJII3@users.noreply.github.com> Date: Sun, 15 Sep 2024 17:38:14 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20CI=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..ea7ffdf --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,46 @@ +name: Check +on: + push: + branches: + - master + pull_request: + types: + - opened + - synchronize + - reopened + +permissions: + contents: read + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Setup | Checkout + uses: actions/checkout@v4 + + - name: Setup | Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + # node-version-file: .nvmrc + + - name: Run | Lint + run: npm run lint + + # build: + # runs-on: ubuntu-latest + # steps: + # - name: Setup | Checkout + # uses: actions/checkout@v4 + # + # - name: Setup | Node.js + # uses: shun-shobon/actions/setup-node@master + # with: + # node-version-file: .nvmrc + + - name: Run | Build + run: npm run build + env: + VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }} + VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }} From 6ee19982d1f20de9000cd1d06234ee862dc61343 Mon Sep 17 00:00:00 2001 From: ojii3 <84656786+OJII3@users.noreply.github.com> Date: Sun, 15 Sep 2024 17:42:32 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20CI=E3=81=AE=E8=B6=B3=E3=82=8A?= =?UTF-8?q?=E3=81=AA=E3=81=84Step=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ea7ffdf..a4b7629 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,6 +25,9 @@ jobs: node-version: 20 # node-version-file: .nvmrc + - name: Setup | Node Modules + run: npm ci + - name: Run | Lint run: npm run lint