1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/.github/workflows/static-test.yml
Martine Lenders e5f5f3c0b3
gh-actions: static-tests: remove ref from checkout
That parameter was solely needed for the commit checks that are now
moved to the `check-pr` workflow. The only other test using git is the
whitespace check and that works just fine on the merge commit.
2021-01-08 14:09:43 +01:00

40 lines
1.1 KiB
YAML

name: static-tests
on:
push:
branches:
- master
tags:
- '[0-9][0-9][0-9][0-9].[0-9][0-9]-RC[0-9]*'
- '[0-9][0-9][0-9][0-9].[0-9][0-9]'
- '[0-9][0-9][0-9][0-9].[0-9][0-9].*'
pull_request:
branches:
- '*'
jobs:
static-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup git
run: |
# Note: ${{ github.base_ref }} is empty when not in a PR
if [ -n "${{ github.base_ref }}" ]; then
git fetch origin ${{ github.base_ref }}:${{ github.base_ref }} --no-tags
fi
git config apply.whitespace nowarn
- name: Fetch riot/riotbuild Docker image
run: docker pull riot/riotbuild:latest
- name: Run static-tests
run: |
# Note: ${{ github.base_ref }} is empty when not in a PR
docker run --rm \
-e CI_BASE_BRANCH=${{ github.base_ref }} \
-e GITHUB_RUN_ID=${GITHUB_RUN_ID} \
-v $(pwd):/data/riotbuild \
riot/riotbuild:latest \
make static-test