From fdfb3ac8fb34b61b2199729604b6272683cb938b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A7=84=EB=AA=85?= <86943988+jinddings@users.noreply.github.com> Date: Mon, 4 Nov 2024 21:29:07 +0900 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..b236bf61 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [back/main, front/main] + pull_request: + branches: [alpha, main, back/main, front/main, dev] + +jobs: + test-and-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test + env: + CI: true + + - name: Run linter + run: npm run lint + + - name: Build application + run: npm run build