From e6d73829fb6b17d04aba5b0aa4c54723c1c35fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Tue, 16 Apr 2024 15:13:13 +0200 Subject: [PATCH] feat: create ci action #21 --- .github/workflows/ci.yaml | 40 +++++++++++++++++++++++++++++++++++++++ package.json | 11 ++++++----- 2 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..e0dd2d0 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,40 @@ +name: Continuous Integration + +on: push + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Install dependencies and Build app + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: corepack enable + + - name: Set Node.js 18.20.1 + uses: actions/setup-node@v3 + with: + node-version: 18.20.1 + + - name: Run install + uses: borales/actions-yarn@v4 + with: + cmd: install + + - name: Prepare Nuxt + uses: borales/actions-yarn@v4 + with: + cmd: prepare + + - name: Typecheck + uses: borales/actions-yarn@v4 + with: + cmd: typecheck + + - name: Lint + uses: borales/actions-yarn@v4 + with: + cmd: lint diff --git a/package.json b/package.json index ed18582..09f715a 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,14 @@ "private": true, "packageManager": "yarn@4.1.1", "scripts": { - "build": "nuxt build", - "dev": "nuxt dev", - "generate": "nuxt generate", - "start": "nuxt start", - "preview": "nuxt preview", + "build": "nuxi build", + "dev": "nuxi dev", + "generate": "nuxi generate", + "prepare": "nuxi prepare", + "preview": "nuxi preview", "lint": "eslint .", "lint:fix": "eslint . --fix", + "typecheck": "nuxi typecheck", "test": "jest" }, "dependencies": {