build(deps-dev): bump prettier from 3.4.1 to 3.4.2 #310
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
jobs: | |
tests: | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
runs-on: windows-latest | |
steps: | |
- id: fixed_workspace | |
name: Fix path | |
run: | | |
echo out=$("${{github.workspace}}" -Replace "\\","/") | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append | |
- uses: msys2/setup-msys2@v2 | |
with: | |
install: >- | |
make | |
msystem: MINGW64 | |
pacboy: >- | |
cmake:p | |
cmocka:p | |
graphviz:p | |
lcov:p | |
ninja:p | |
toolchain:p | |
update: true | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install tools | |
run: pipx install cpp-coveralls | |
- name: Configure | |
run: >- | |
cmake -G Ninja -B ${{steps.fixed_workspace.outputs.out}}/build | |
--install-prefix ${{steps.fixed_workspace.outputs.out}}/build/prefix | |
-DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DBUILD_TESTS=ON | |
-DENABLE_COVERAGE=ON | |
shell: msys2 {0} | |
- name: Build | |
run: cmake --build ${{steps.fixed_workspace.outputs.out}}/build --verbose | |
shell: msys2 {0} | |
- name: Run tests | |
run: ctest --test-dir ${{steps.fixed_workspace.outputs.out}}/build/native/tests --verbose | |
shell: msys2 {0} | |
- name: Generate coverage information | |
run: >- | |
lcov --capture --directory ${{steps.fixed_workspace.outputs.out}}/build | |
--output-file coverage.info | |
shell: msys2 {0} | |
- if: matrix.build-type == 'Debug' | |
name: Coveralls | |
run: coveralls | |
strategy: | |
fail-fast: false | |
matrix: | |
build-type: [Debug, Release] | |
asan-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install tools | |
run: sudo apt-get update -y && sudo apt-get install -y libcmocka-dev | |
- name: Configure | |
run: >- | |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build-type}} | |
-DBUILD_TESTS=ON -DENABLE_ASAN=ON | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --verbose | |
- name: Run tests | |
run: ctest --test-dir ${{github.workspace}}/build/native/tests --verbose | |
strategy: | |
fail-fast: false | |
matrix: | |
build-type: [Debug, RelWithDebInfo] | |
name: Tests | |
'on': | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master |