forked from linux-audit/audit-testsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should mirror what we do with Travis CI. Signed-off-by: Paul Moore <paul@paul-moore.com>
- Loading branch information
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# Github Action to setup the audit-testsuite | ||
# | ||
# Copyright (c) 2021 Microsoft Corporation <paulmoore@microsoft.com> | ||
# Author: Paul Moore <paul@paul-moore.com> | ||
# | ||
|
||
name: Setup the audit-testsuite | ||
description: "Install CI dependencies for the audit-testsuite" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: sudo apt-get install -y build-essential gcc-multilib python3-pip | ||
shell: bash | ||
- run: sudo apt-get install -y astyle | ||
shell: bash | ||
- run: | | ||
# NOTE: the distro package isn't current enough (ubuntu-20.04) | ||
git clone https://github.com/perltidy/perltidy.git perltidy | ||
cd perltidy | ||
perl Makefile.PL | ||
make | ||
sudo make install | ||
echo "/usr/local/bin" >> $GITHUB_PATH | ||
shell: bash | ||
- run: | | ||
# NOTE: the distro package isn't current enough (ubuntu-20.04) | ||
sudo python3 -m pip install --upgrade pip | ||
sudo python3 -m pip install yapf | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# Github CI Action for the audit-testsuite | ||
# | ||
# Copyright (c) 2021 Microsoft Corporation <paulmoore@microsoft.com> | ||
# Author: Paul Moore <paul@paul-moore.com> | ||
# | ||
|
||
name: Continuous Integration | ||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
syntax: | ||
name: Check Syntax | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout from GitHub | ||
uses: actions/checkout@v2 | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- name: Syntax Checker | ||
run: ./tools/check-syntax -f && git diff --exit-code | ||
build: | ||
name: Build Tests | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout from GitHub | ||
uses: actions/checkout@v2 | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- name: Build | ||
run: make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters