diff --git a/.gitea/workflows/BuildValidation.yml b/.gitea/workflows/BuildValidation.yml deleted file mode 100644 index 93855dd..0000000 --- a/.gitea/workflows/BuildValidation.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Build Validation - -on: - workflow_dispatch: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened] - -jobs: - build: - runs-on: ubuntu-latest - permissions: - code: read - - steps: - - name: checkout Repository - uses: actions/checkout@v4 - - - name: use NodeJS v24.14.0 - uses: actions/setup-node@v4 - with: - node-version: '24.14.0' - - - name: install Dependencies - run: npm install - - - name: run Build Validation - run: npm run check - - - name: run Tests - run: npm run test - env: - CHROME_BIN: google-chrome diff --git a/.gitea/workflows/CI.yml b/.gitea/workflows/CI.yml new file mode 100644 index 0000000..e86d317 --- /dev/null +++ b/.gitea/workflows/CI.yml @@ -0,0 +1,66 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +jobs: + lint: + runs-on: ubuntu-latest + permissions: + code: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '24.14.0' + cache: npm + - run: npm ci + - run: npm run lint + + formatting: + runs-on: ubuntu-latest + permissions: + code: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '24.14.0' + cache: npm + - run: npm ci + - run: npm run format:check + + metadata: + runs-on: ubuntu-latest + permissions: + code: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '24.14.0' + cache: npm + - run: npm ci + - run: npm run version:check + - run: npm run text:check + + tests: + runs-on: ubuntu-latest + permissions: + code: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '24.14.0' + cache: npm + - run: npm ci + - name: Run tests + run: npm run test + env: + CHROME_BIN: google-chrome