Add basic github CI

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
This commit is contained in:
Gerwin Klein 2020-12-02 14:59:23 +11:00
parent 930f8e5314
commit cc3e805f00
2 changed files with 55 additions and 0 deletions

22
.github/workflows/pr.yml vendored Normal file
View File

@ -0,0 +1,22 @@
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
# SPDX-License-Identifier: BSD-2-Clause
# Actions to run on pull requests
name: PR
on: [pull_request]
jobs:
gitlint:
name: Gitlint
runs-on: ubuntu-latest
steps:
- uses: seL4/ci-actions/gitlint@master
whitespace:
name: 'Trailing Whitespace'
runs-on: ubuntu-latest
steps:
- uses: seL4/ci-actions/git-diff-check@master

33
.github/workflows/push.yml vendored Normal file
View File

@ -0,0 +1,33 @@
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
# SPDX-License-Identifier: BSD-2-Clause
# Actions to run on Push and Pull Request
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
check:
name: License Check
runs-on: ubuntu-latest
steps:
- uses: seL4/ci-actions/license-check@master
links:
name: Links
runs-on: ubuntu-latest
steps:
- uses: seL4/ci-actions/link-check@master
with:
exclude: js/node_modules
style:
name: Style
runs-on: ubuntu-latest
steps:
- uses: seL4/ci-actions/style@master