Skip to content

Commit

Permalink
Add code-check action
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Jul 25, 2023
1 parent 97bf8b6 commit c76b816
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: code-check
on:
workflow_dispatch:
inputs:
branch:
description: 'LIEF branch'
default: master
required: false
type: string
what:
description: 'clang tidy action'
default: latest
required: false
type: string
push:
branches:
- master
jobs:
coverage:
runs-on: ubuntu-latest
container:
image: liefproject/code-check
env:
LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }}
LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }}
GH_BRANCH: ${{ github.event.inputs.branch }}
steps:
- uses: actions/checkout@v3
with:
repository: lief-project/code-check
token: ${{ secrets.LIEF_CLONE_TOKEN }}
- name: Print info
run: |
echo ${GH_BRANCH}
- name: Running LIEF coverage
run: ./lief-coverage --debug
clang-tidy:
runs-on: ubuntu-latest
container:
image: liefproject/code-check
env:
LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }}
LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }}
steps:
- uses: actions/checkout@v3
with:
repository: lief-project/code-check
token: ${{ secrets.LIEF_CLONE_TOKEN }}
- name: Running LIEF coverage [workflow dispatch]
if: "github.event.name == 'workflow_dispatch'"
run: ./lief-tidy --branch ${{ github.event.inputs.branch }} ${{ github.event.inputs.what }}
- name: Running LIEF coverage [regular]
if: "github.event.name != 'workflow_dispatch'"
run: ./lief-tidy latest

0 comments on commit c76b816

Please sign in to comment.