-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (21 loc) · 939 Bytes
/
_code-quality.yml
File metadata and controls
23 lines (21 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: 'Code quality'
on:
workflow_call:
jobs:
lint:
name: "/"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: technology-studio/github-workflows/.github/actions/install-dependencies@main
- if: "!contains(github.event.pull_request.title, 'update dependency eslint-config-txo')"
run: yarn lint:ci
- name: Validate ESLint run if PR title contains `update dependency eslint-config-txo`
if: contains(github.event.pull_request.title, 'update dependency eslint-config-txo')
run: yarn txo-eslint ver --cache
- name: Send a Slack message on failure
if: failure()
uses: technology-studio/github-workflows/.github/actions/slack-failed-job-message@main
with:
slack_bot_token: ${{ secrets.TXO_SLACK_BOT_APP_TOKEN }}
channel_id: ${{ secrets.TXO_SLACK_GITHUB_OPS_CHANNEL_ID }}