From c4247e4389b765179aa1fd0b010f50e8d6bddf4d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 30 May 2023 21:19:56 +0200 Subject: Add code coverage And make it available at https://jvoisin.github.io/fortify-headers/include/index.html --- .github/workflows/coverage.yaml | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/coverage.yaml (limited to '.github/workflows') diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml new file mode 100644 index 0000000..94887f9 --- /dev/null +++ b/.github/workflows/coverage.yaml @@ -0,0 +1,45 @@ +name: Deploy static content to Pages + +on: + push: + branches: ["master"] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checking out the code + uses: actions/checkout@v3 + - name: Downloading musl-based toolchain + run: wget https://musl.cc/x86_64-linux-musl-native.tgz + - name: Extracting musl-based toolchain + run: tar xzf ./x86_64-linux-musl-native.tgz + - name: Installing lcov + run: sudo apt install lcov + - name: Running the testsuite + run: make -C tests clean coverage + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + # Upload entire repository + path: './tests/coverage/' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 + -- cgit v1.3