forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 968 Bytes
/
check-docs.yml
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
31
32
33
34
35
36
37
38
name: check-docs
on:
pull_request:
paths:
- '.github/workflows/check-docs.yml'
- '**/*.asciidoc'
- '**/*.md'
- 'deploy/kubernetes/*-kubernetes.yaml'
permissions:
contents: read
pull-requests: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: .go-version
- name: Update package lists
run: sudo apt-get update
- name: Install libpcap-dev
run: sudo apt-get install -y libpcap-dev
- name: Install libsystemd-dev
run: sudo apt-get install -y libsystemd-dev
- name: Install librpm-dev
run: sudo apt-get install -y librpm-dev
# when using ubuntu-latest, python 3.10 is not the default version.
- name: Fix Code is not compatible with Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run check
run: |
make check