Skip to content

Commit

Permalink
Add a separated workflow fro lint
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Jan 4, 2024
1 parent f706a06 commit 6f27353
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ jobs:
run: |
make check-tags
- name: check lint
run: |
make lint
- name: run solutions
run: |
make run
27 changes: 27 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Lint
on: [push]
jobs:
lint-c:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: check if tags are correct
run: |
make check-tags
- uses: docker/build-push-action@v4
with:
context: .
file: ".docker/lint/c-lint.Dockerfile"
tags: c-lint:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- name: Run Pytest
uses: addnab/docker-run-action@v3
with:
image: c-lint:latest
options: -v $$(pwd):/code

0 comments on commit 6f27353

Please sign in to comment.