-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (48 loc) · 1.47 KB
/
test-lint.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Lint Code"
on:
workflow_call:
# Required for aws-actions/configure-aws-credentials using OIDC, assume role
permissions:
id-token: write
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
# Removing this directory helps to prevent a "no space left on device" error.
- name: Remove useless data
run: rm -rf /opt/hostedtoolcache
- name: Checkout
uses: actions/checkout@v4
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
swap-storage: false
- name: Setup Go, tools and caching
uses: ./.github/actions/go-setup
with:
build-type: lint
cache-s3-bucket: ${{ vars.CACHE_S3_BUCKET }}
- name: Check links in Markdown files
uses: lycheeverse/[email protected]
with:
fail: true
args: |
'./**/*.md'
--verbose
--exclude-path 'vendor'
--exclude-path 'test'
--exclude '^http://localhost.*'
--exclude '^https://app.datadoghq.eu/.*'
--exclude '^https://community.chocolatey.org/.*'
--exclude '^https://packages.debian.org/$'
--exclude '^https://test.hub.keboola.local/$'
- name: Run code linters
run: make lint
shell: bash