From 428134e4be7a040662acb70f890331938fc1675a Mon Sep 17 00:00:00 2001 From: Daniel Mohns Date: Thu, 16 May 2024 14:56:35 +0200 Subject: [PATCH] Add Github Actions --- .github/workflows/check.yml | 67 +++++++++++++++++++++++++++++++++++++ 1 file changed, 67 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 0000000..235bf21 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,67 @@ +name: Code Quality + +on: + push: + branches: + - develop + pull_request: + branches: + - develop + +jobs: + lint-prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: actions/setup-node@v4 + with: + node-version: lts/gallium + + - name: Install drec-ui + run: npm install + + - name: Run Prettier + run: npm run prettier + continue-on-error: true + + lint-eslint: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: actions/setup-node@v4 + with: + node-version: lts/gallium + + - name: Install drec-ui + run: npm install + + - name: Run ESLint (error) + run: npm run lint:error + continue-on-error: true + + - name: Run ESLint (all) + run: npm run lint + continue-on-error: true + + check-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: actions/setup-node@v4 + with: + node-version: lts/gallium + + - name: Install drec-ui + run: npm install + + - name: Build drec-origin + run: npm run build