Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workflow): review and cleanup all CI/CD process #1208

Merged
merged 7 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ updates:
open-pull-requests-limit: 20
reviewers:
- AliMD
- njfamirm
schedule:
interval: daily
labels:
Expand All @@ -21,7 +20,6 @@ updates:
open-pull-requests-limit: 20
reviewers:
- AliMD
- njfamirm
schedule:
interval: daily
labels:
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/add-to-project.yml

This file was deleted.

28 changes: 11 additions & 17 deletions .github/workflows/lint.yaml → .github/workflows/build-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Lint
name: Build & Lint

on:
workflow_dispatch:
Expand All @@ -9,9 +9,8 @@ on:

push:
branches:
- next*
- next
- main
- release/*

schedule:
- cron: '0 7 * * 4'
Expand All @@ -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
Expand All @@ -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
45 changes: 0 additions & 45 deletions .github/workflows/build.yaml

This file was deleted.

19 changes: 4 additions & 15 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
name: Dependency Review

on:
pull_request:
workflow_dispatch:

push:
branches:
- next

jobs:
dependency-review:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-alwatr-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
branches:
- next
- main
- v2

pull_request:
paths:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- 'v*.*.*'

env:
NODE_VERSION: latest
NODE_VERSION: lts/*

jobs:
publish-npm:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-special-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
branches:
- next
- main
- v2

pull_request:
paths:
Expand Down
2 changes: 1 addition & 1 deletion cloud/container/alwatr-pwa.dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion cloud/container/alwatr-services.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG NODE_VERSION=19
ARG NODE_VERSION=20

FROM docker.io/library/node:${NODE_VERSION}-alpine as builder

Expand Down
2 changes: 1 addition & 1 deletion services/telegram-notifier/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG NODE_VERSION=19
ARG NODE_VERSION=20
FROM docker.io/library/node:${NODE_VERSION}-alpine as builder

WORKDIR /app
Expand Down