diff --git a/.gitea/workflows/front.yaml b/.gitea/workflows/front.yaml new file mode 100644 index 0000000..2a7b551 --- /dev/null +++ b/.gitea/workflows/front.yaml @@ -0,0 +1,24 @@ +name: CI +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install everything + working-directory: ./front/MyINPulse-front + run: npm i + + - name: Run ESLint + working-directory: ./front/MyINPulse-front + run: npx eslint + + - name: Run prettier + working-directory: ./front/MyINPulse-front + run: npx prettier src --check + + - name: check build + working-directory: ./front/MyINPulse-front + run: npm run build \ No newline at end of file diff --git a/.gitea/workflows/linter.yaml b/.gitea/workflows/linter.yaml deleted file mode 100644 index 80cfbfe..0000000 --- a/.gitea/workflows/linter.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: CI -on: push -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install ESLint - run: npm install eslint eslint-config-prettier eslint-plugin-vue globals typescript-eslint - - - name: Run ESLint - working-directory: ./front/MyINPulse-front - run: npx eslint diff --git a/.gitea/workflows/prettier.yaml b/.gitea/workflows/prettier.yaml deleted file mode 100644 index ef447a9..0000000 --- a/.gitea/workflows/prettier.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: CI -on: push -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install ESLint - run: npm install prettier - - - name: Run ESLint - working-directory: ./front/MyINPulse-front - run: npx prettier src --check