1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

.github/workflows: add static-test github action

This commit is contained in:
Alexandre Abadie 2020-11-12 16:50:37 +01:00
parent 3f21b5617f
commit 21e541dfd1
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

31
.github/workflows/static-test.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: static-tests
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- '*'
jobs:
static-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Use the SHA of the PR branch as-is, not the PR branch merged
# in master (default behavior in GH actions)
# See https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup git
run: |
git fetch origin master:master --no-tags
git config apply.whitespace nowarn
- name: Fetch riot/riotbuild Docker image
run: docker pull riot/riotbuild:latest
- name: Run static-tests
run: |
docker run --rm -v $(pwd):/data/riotbuild riot/riotbuild:latest make static-test