-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (30 loc) · 878 Bytes
/
test.yaml
File metadata and controls
30 lines (30 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: write # for pre-commit-action
jobs:
test:
name: Test
runs-on: ubuntu-22.04
steps:
- name: Check out repository.
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Use Docker in rootless mode.
uses: ./
- name: Run pre-commit hooks.
uses: ScribeMD/pre-commit-action@832e026101148e0234fde20eecf91c08942ace4a # 0.9.127
- name: Send Slack notification with job status.
if: always()
uses: ScribeMD/slack-templates@bea126c3915616204196f29d27d6ab9526d61a25 # 0.6.37
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: ${{ secrets.SLACK_ACTIONS_CHANNEL_ID }}
template: result