From 42362640e536905878df922b4736ffb31d40d90c Mon Sep 17 00:00:00 2001 From: Yang Qian <30404287+GodYazza@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:02:54 +1200 Subject: [PATCH] pr build --- .github/workflows/pr-build.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pr-build.yml diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml new file mode 100644 index 0000000..0143641 --- /dev/null +++ b/.github/workflows/pr-build.yml @@ -0,0 +1,36 @@ +name: PR Build + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js (for Node projects) + uses: actions/setup-node@v3 + with: + node-version: '18' # Choose your node version + + - name: Install dependencies + working-directory: ./web + run: npm install + + + - name: Build project + working-directory: ./web + run: npm run build + + - name: Install dependencies + working-directory: ./api + run: npm install + + + - name: Build project + working-directory: ./api + run: npm run build \ No newline at end of file