From 403cdbb27e4cca12d1876ba7cca89c4fa38c6b71 Mon Sep 17 00:00:00 2001 From: glassk Date: Thu, 25 Apr 2024 18:41:25 +0900 Subject: [PATCH] [chore] add GitHub Action workflow file for CI --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..f9cd2ee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: Run Tests on PR to Dev + +on: + pull_request: + branches: + - dev + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install Yarn + run: npm install -g yarn + + - name: Install dependencies + run: yarn install + + - name: Run lint + run: yarn lint + + - name: Compile the project + run: yarn compile + + - name: Run tests + run: yarn test