From b9f4c386c510a84bd00985f56c47dc4919389d0b Mon Sep 17 00:00:00 2001 From: Kath <55346310+Kathund@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:55:02 +0800 Subject: [PATCH] ci/cd --- .github/workflows/ci-cd.yml | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/ci-cd.yml diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 0000000..0026fed --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,48 @@ +# This CI Workflow was deployed and configured by WarpWing and Nate. +name: CI/CD + +on: + push: + pull_request: + workflow_dispatch: + +env: + NODE_VERSION: "16.x" + +jobs: + prettier: + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install node dependencies + run: npm i + + - name: prettier + run: npm run prettier:check + + compile: + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install node dependencies + run: npm i + + - name: Copy Config, + run: cp config.example.json config.json + + - name: Test Compile + run: npm run compile