Skip to content

Kerem/eth subscribe #121

Kerem/eth subscribe

Kerem/eth subscribe #121

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- main
workflow_call:
secrets:
SLACK_CI_WEBHOOK_URL:
required: true
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
ci:
name: Continuous Integration
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v4.0.0
with:
version: 8.6.10
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test:unit
- name: Docs broken links
run: pnpm docs:broken-links
- name: Slack Notification
id: slack
uses: slackapi/slack-github-action@v1.24.0
with:
# For posting a rich message using Block Kit
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action CI result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK