Browse Source

expanded YAML linting to cover every yaml file found in this repo (#874)

pull/875/head
Hamish Coleman 3 years ago
committed by GitHub
parent
commit
6c1ed021b1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 44
      .github/workflows/tests.yml
  2. 3
      Makefile.in

44
.github/workflows/tests.yml

@ -1,4 +1,4 @@
---
name: Testing name: Testing
on: on:
@ -66,7 +66,9 @@ jobs:
- name: Run the real configure step - name: Run the real configure step
run: | run: |
CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="--coverage" ./configure --with-zstd export CFLAGS="-fprofile-arcs -ftest-coverage"
export LDFLAGS="--coverage"
./configure --with-zstd
shell: bash shell: bash
- name: Run embedded tests - name: Run embedded tests
@ -129,7 +131,9 @@ jobs:
- name: Run the real configure step - name: Run the real configure step
run: | run: |
CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="--coverage" ./configure --with-zstd export CFLAGS="-fprofile-arcs -ftest-coverage"
export LDFLAGS="--coverage"
./configure --with-zstd
shell: bash shell: bash
- name: Run embedded tests - name: Run embedded tests
@ -153,20 +157,21 @@ jobs:
- name: Generate coverage reports - name: Generate coverage reports
run: | run: |
make gcov make gcov
# This was working fine for tens of jobs, up until 2021-10-19T18:53+0100 # This was working fine for tens of jobs, up until
# and it still works fine when run from my personal github actions. # 2021-10-19T18:53+0100 and it still works fine when run from my
# The next run at 2021-10-19T19:08+0100 didnt work. # personal github actions. The next run at 2021-10-19T19:08+0100
# Assume that they changed something on the runner - I cannot debug it # didnt work.
# as I do not have a Mac. # Assume that they changed something on the runner - I cannot debug
# it as I do not have a Mac.
# #
# make cover COVERAGEDIR=coverage/${{ matrix.os }} # make cover COVERAGEDIR=coverage/${{ matrix.os }}
shell: bash shell: bash
# - name: Upload gcovr report artifact # - name: Upload gcovr report artifact
# uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
# with: # with:
# name: coverage # name: coverage
# path: coverage # path: coverage
- name: Upload data to codecov - name: Upload data to codecov
uses: codecov/codecov-action@v2 uses: codecov/codecov-action@v2
@ -195,7 +200,9 @@ jobs:
- name: Run a configure step - name: Run a configure step
run: | run: |
CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="--coverage" ./scripts/hack_fakeautoconf.sh export CFLAGS="-fprofile-arcs -ftest-coverage"
export LDFLAGS="--coverage"
./scripts/hack_fakeautoconf.sh
shell: bash shell: bash
- name: Run embedded tests - name: Run embedded tests
@ -245,7 +252,8 @@ jobs:
- name: Install packages needed for build - name: Install packages needed for build
run: | run: |
sudo apt-get install debhelper build-essential crossbuild-essential-${{ matrix.arch }} sudo apt-get install debhelper build-essential \
crossbuild-essential-${{ matrix.arch }}
- name: Configure - name: Configure
run: | run: |
@ -365,7 +373,7 @@ jobs:
binaries_linux_crosscompile: binaries_linux_crosscompile:
name: Binaries for linux name: Binaries for linux
needs: needs:
- test_linux - test_linux
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -387,7 +395,9 @@ jobs:
- name: Install cross compiler - name: Install cross compiler
run: | run: |
sudo apt-get install binutils-${{ matrix.arch }} gcc-${{ matrix.arch }} sudo apt-get install \
binutils-${{ matrix.arch }} \
gcc-${{ matrix.arch }}
- name: Configure and Build - name: Configure and Build
shell: bash shell: bash

3
Makefile.in

@ -197,8 +197,7 @@ lint.shell:
shellcheck scripts/*.sh shellcheck scripts/*.sh
lint.yaml: lint.yaml:
yamllint .circleci/config.yml .travis.yml .yamllint.yml \ yamllint .
.github/workflows/cmake-linux.yml
# To generate coverage information, run configure with # To generate coverage information, run configure with
# CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="--coverage" # CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="--coverage"

Loading…
Cancel
Save