From 7cfea0c0fd9678f1e057f8a40fdd51dafacf2d86 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 21 Aug 2024 11:44:37 +0800 Subject: [PATCH] Create check.yml Signed-off-by: qiaofeng1227 <76487013@qq.com> --- .github/workflows/check.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..978caa93 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: npm install -g yarn && yarn install + + - name: Run tests + run: npm run start -- --host 0.0.0.0 --port 3000 --locale en