-
-
Notifications
You must be signed in to change notification settings - Fork 20
28 lines (28 loc) · 863 Bytes
/
lint.yaml
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
---
name: Lint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
context: .
file: ".docker/lint/c-lint.Dockerfile"
tags: c-lint:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
- name: Run C lint
uses: addnab/docker-run-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
image: deniscostadsc/c-lint:latest
options: -v ${{ github.workspace }}:/code -e LINT_FIX=1