Skip to content

bump release date

bump release date #5

Workflow file for this run

name: Check code
env:
PNPM_VERSION: 10.7.1
on:
push:
pull_request:
# Make possible to run manually
workflow_dispatch:
jobs:
check_code:
name: Run type checking, linting, and testing
runs-on: ubuntu-latest
strategy:
matrix:
# https://nodejs.org/en/about/previous-releases
node-version:
- 18.x
- 20.x
- 22.x
steps:
- name: Check out to repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: List files
run: ls -alt
- name: Check TypeScript types
run: pnpm check-types
- name: Run Markdownlint
run: pnpm lint:md
- name: Run ESLint
run: pnpm lint:ts
- name: Run tests
run: pnpm test
- name: Build should be successful
run: pnpm build
notify:
name: Send Slack notification on failure
needs: check_code
# Run this job only if the previous job failed and the event was triggered by the 'AdguardTeam/ChangelogTools' repository
# Note: 'always()' is needed to run the notify job even if the test job was failed
if:
${{
always() &&
needs.check_code.result == 'failure' &&
github.repository == 'AdguardTeam/ChangelogTools' &&
(
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
)
}}
runs-on: ubuntu-latest
steps:
- name: Send Slack notification
uses: 8398a7/action-slack@v3
with:
status: failure
fields: workflow, repo, message, commit, author, eventName, ref, job
job_name: check_code
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}