Commit Graph

14 Commits

Author SHA1 Message Date
Gerwin Klein b8881bbf9b github: add more test sessions for master branch
These are not complete yet, but should be manageable by
github CI runners.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-09-10 16:09:38 +08:00
Gerwin Klein 5857efd15f github: cache ~/.stack contents
It'd be nice to check for actual *.cabal changes, but the cache
action doesn't have access to the repo checkout yet.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-09-10 16:09:38 +08:00
Gerwin Klein e26ffb8c14 github: add remaining MCS tests
This manually adds the HaskellKernel compile test, ASpecDoc, and
tests-xml-correct sessions, which together with the existing tests make
up the entire current MCS test suite apart from "Licenses" which is
already covered by other github CI.

This is a bit ad-hoc, ideally there should be a default "rest" session
to capture tests that will be added in the future. This will need a bit
of restructure in the CI action itself, though, so is postponed for now.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-09-10 16:09:38 +08:00
Gerwin Klein 2845f9904e github: also test Refine session
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-08-10 15:48:34 +08:00
Gerwin Klein 7ba6422142 github: run on all PRs, and on push to {master, rt}
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-08-10 15:48:34 +08:00
Gerwin Klein 9f6b6c243e github: cache Isabelle images
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-08-10 15:48:34 +08:00
Gerwin Klein 963a3cca75 github: use standardised seL4 actions
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-08-10 15:48:34 +08:00
Gerwin Klein 9c837e81d0 github: PR checks on AInvs for rt branch
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-08-10 15:48:34 +08:00
Gerwin Klein c53cb66869 github: use sha for head reference in gitlint
The branch name of the pull request doesn't necessarily exist in the
origin repo if the pull request is from a fork. Using the hash directly
should be more reliable.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-04-20 12:06:13 +08:00
Gerwin Klein 106cd6d41b github: gitlint workflow now more general
Now contains gitlint and whitespace check. Renamed accordingly.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-04-20 11:48:17 +08:00
Gerwin Klein 0af1b8b912 github: check for trailing whitespace and conflict markers
The check runs `git diff --check $base_ref`, which has non-zero
error code if either trailing whitespace or conflict markers are
present.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-04-20 11:48:02 +08:00
Gerwin Klein 1dc30da470 Run style check from within checked repository
This is to make sure that the .stylefilter file is applied.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-04-19 13:53:59 +08:00
Gerwin Klein 1d46f2aafd github: don't attempt to follow into isabelle repo
When the license check runs, the `l4v` repo is not necessarily
in the full `repo` context, i.e. the `isabelle` link is dangling.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-04-19 12:48:43 +08:00
Gerwin Klein a5e6138361 github: CI actions for simple checks
This commit adds github workflow actions for a few simple checks from
the main regression test suite to give instant automatic feedback on
github pull requests. Specifically, it adds the following checks:

  - sel4_tools style
  - sel4_tools shell scripts
  - gitlint
  - `reuse` SPDX license check

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-04-19 11:28:26 +08:00