diff --git a/.github/dependabot.yml b/.github/dependabot.yml index abb2d68db..1a481c820 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,7 +7,6 @@ updates: open-pull-requests-limit: 20 reviewers: - AliMD - - njfamirm schedule: interval: daily labels: @@ -21,7 +20,6 @@ updates: open-pull-requests-limit: 20 reviewers: - AliMD - - njfamirm schedule: interval: daily labels: diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml deleted file mode 100644 index 407e1d668..000000000 --- a/.github/workflows/add-to-project.yml +++ /dev/null @@ -1,33 +0,0 @@ -# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json - -name: Add To GitHub projects - -on: - workflow_dispatch: - - issues: - types: - - opened - - pull_request: - types: - - opened - -jobs: - add-to-project: - name: Add To GitHub projects - runs-on: ubuntu-latest - - # permissions: - # issues: write - # pull-requests: write - # repository-projects: write - - steps: - - name: Add To GitHub projects - uses: actions/add-to-project@v0.5.0 - with: - project-url: https://github.com/users/AliMD/projects/3 - github-token: ${{secrets.ADD_TO_PROJECT}} - # labeled: a, b - # label-operator: AND diff --git a/.github/workflows/lint.yaml b/.github/workflows/build-lint.yaml similarity index 69% rename from .github/workflows/lint.yaml rename to .github/workflows/build-lint.yaml index 4f63ad05b..a81a2f98f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/build-lint.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json -name: Lint +name: Build & Lint on: workflow_dispatch: @@ -9,9 +9,8 @@ on: push: branches: - - next* + - next - main - - release/* schedule: - cron: '0 7 * * 4' @@ -24,17 +23,15 @@ on: # └───────────── minute (0 - 59) env: - NODE_VERSION: latest + NODE_VERSION: lts/* jobs: - lint-ts: - name: ESLint Scanning + build-list-ts: + name: Build Typescript runs-on: ubuntu-latest permissions: - actions: read contents: read - security-events: write steps: - name: ⤵️ Checkout repository @@ -49,14 +46,11 @@ jobs: - name: 🏗 Install dependencies run: yarn install --frozen-lockfile + - name: 🚀 Build Typescript + run: yarn build + + - name: 🚀 Extra Packages Build + run: yarn lerna run build + - name: 🚀 Run ESLint run: yarn lint:ts - --format @microsoft/eslint-formatter-sarif - --output-file eslint-results.sarif - continue-on-error: true - - - name: 🏗 Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2.3.6 - with: - sarif_file: eslint-results.sarif - wait-for-processing: true diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index df43a1ca2..000000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,45 +0,0 @@ -# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json - -name: Build - -on: - workflow_dispatch: - - pull_request: - - push: - branches: - - next* - - main - - release/* - -env: - NODE_VERSION: latest - -jobs: - build-ts: - name: Build Typescript - runs-on: ubuntu-latest - - permissions: - contents: read - security-events: write - - steps: - - name: ⤵️ Checkout repository - uses: actions/checkout@v3.5.2 - - - name: 🏗 Setup nodejs - uses: actions/setup-node@v3.6.0 - with: - node-version: ${{ env.NODE_VERSION }} - cache: yarn - - - name: 🏗 Install dependencies - run: yarn install --frozen-lockfile - - - name: 🚀 Build Typescript - run: yarn build - - - name: 🚀 Extra Packages Build - run: yarn lerna run build diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 34fe2aa45..b91972b2a 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -5,26 +5,15 @@ name: CodeQL on: workflow_dispatch: - pull_request: - paths: - - '**.ts' - - '**.js' - push: - paths: - - '**.ts' - - '**.js' branches: - - next* - main - - release/* schedule: - - cron: '0 7 * * 1' - # * * * * * - # │ │ │ │ │ - # │ │ │ │ └───── day of the week (0 - 6 or SUN-SAT) - # │ │ │ └─────── month (1 - 12 or JAN-DEC) + - cron: '0 7 * */2 *' + # │ │ │ │ │ + # │ │ │ │ └─── day of the week (0 - 6 or SUN-SAT) + # │ │ │ └────── month (1 - 12 or JAN-DEC) # │ │ └───────── day of the month (1 - 31) # │ └─────────── hour (0 - 23) # └───────────── minute (0 - 59) diff --git a/.github/workflows/dependency-review.yaml b/.github/workflows/dependency-review.yaml index 4ff9cfd26..54b4e5eca 100644 --- a/.github/workflows/dependency-review.yaml +++ b/.github/workflows/dependency-review.yaml @@ -3,7 +3,11 @@ name: Dependency Review on: - pull_request: + workflow_dispatch: + + push: + branches: + - next jobs: dependency-review: diff --git a/.github/workflows/publish-alwatr-container.yml b/.github/workflows/publish-alwatr-container.yml index 6535ebdaf..95dc26936 100644 --- a/.github/workflows/publish-alwatr-container.yml +++ b/.github/workflows/publish-alwatr-container.yml @@ -11,7 +11,6 @@ on: branches: - next - main - - v2 pull_request: paths: diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index fae8b0790..ce8040b2c 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -14,7 +14,7 @@ on: - 'v*.*.*' env: - NODE_VERSION: latest + NODE_VERSION: lts/* jobs: publish-npm: diff --git a/.github/workflows/publish-special-container.yml b/.github/workflows/publish-special-container.yml index af42be571..47478eae8 100644 --- a/.github/workflows/publish-special-container.yml +++ b/.github/workflows/publish-special-container.yml @@ -14,7 +14,6 @@ on: branches: - next - main - - v2 pull_request: paths: diff --git a/cloud/container/alwatr-pwa.dockerfile b/cloud/container/alwatr-pwa.dockerfile index a221b3765..8f18ef3b0 100644 --- a/cloud/container/alwatr-pwa.dockerfile +++ b/cloud/container/alwatr-pwa.dockerfile @@ -1,4 +1,4 @@ -ARG NODE_VERSION=19 +ARG NODE_VERSION=20 ARG ALWATR_NGINX_VERSION=1.7.0-1.24-alpine FROM docker.io/library/node:${NODE_VERSION}-alpine as builder diff --git a/cloud/container/alwatr-services.dockerfile b/cloud/container/alwatr-services.dockerfile index 9fe5cb3b4..7be09c41a 100644 --- a/cloud/container/alwatr-services.dockerfile +++ b/cloud/container/alwatr-services.dockerfile @@ -1,4 +1,4 @@ -ARG NODE_VERSION=19 +ARG NODE_VERSION=20 FROM docker.io/library/node:${NODE_VERSION}-alpine as builder diff --git a/services/telegram-notifier/Dockerfile b/services/telegram-notifier/Dockerfile index 89982400a..f76a10f43 100644 --- a/services/telegram-notifier/Dockerfile +++ b/services/telegram-notifier/Dockerfile @@ -1,4 +1,4 @@ -ARG NODE_VERSION=19 +ARG NODE_VERSION=20 FROM docker.io/library/node:${NODE_VERSION}-alpine as builder WORKDIR /app