From 0131cab6acd086bb5e92e67c126ef10d1c5734bd Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Wed, 21 May 2025 19:34:32 +1000 Subject: [PATCH] ci: add actions in github platform --- .gitea/workflows/workflow.yaml | 2 +- .github/workflows/workflow.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/workflow.yaml diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index 69fab3d..78c48e5 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -1,4 +1,4 @@ -name: Publish to npm +name: Quality Check & Publish on: push: diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml new file mode 100644 index 0000000..f0ec398 --- /dev/null +++ b/.github/workflows/workflow.yaml @@ -0,0 +1,24 @@ +name: Quality Check + +on: + push: + branches: + - '*' + +jobs: + quality: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '22' + - name: Install dependencies + run: npm ci + - name: Run Biome + run: npm run quality-check + if: always() + outputs: + status: ${{ job.status }} \ No newline at end of file