From 417f2b18f32e837e345a0acde384b31dcf73c0a6 Mon Sep 17 00:00:00 2001 From: tien bui Date: Wed, 4 Jun 2025 09:37:08 +0700 Subject: [PATCH 1/2] Test build CI --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9fff1cd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI - Build and Test + +on: + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: npm install + + - name: Build project + run: npm run build + + - name: Run tests + run: npm test || echo "No tests configured" From cf292efd8c70ca21c458ca2b4f8ea56510c2e182 Mon Sep 17 00:00:00 2001 From: tien bui Date: Wed, 4 Jun 2025 09:56:23 +0700 Subject: [PATCH 2/2] =?UTF-8?q?Th=C3=AAm=20GitHub=20Actions=20CI=20=C4=91?= =?UTF-8?q?=E1=BB=83=20build=20d=E1=BB=B1=20=C3=A1n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fff1cd..15aa6d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,27 +1,16 @@ -name: CI - Build and Test +name: Build & Test on: pull_request: - branches: [ main ] + branches: [ master ] jobs: build: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup Node.js - uses: actions/setup-node@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 18 - - - name: Install dependencies - run: npm install - - - name: Build project - run: npm run build - - - name: Run tests - run: npm test || echo "No tests configured" + - run: npm install + - run: npm run build