Fix publishing with NPM tag without git tag #30
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
name: Check code style | |
on: | |
push: | |
paths: | |
- .clang-format | |
- '*.cpp' | |
pull_request: | |
paths: | |
- .clang-format | |
- '*.cpp' | |
jobs: | |
check-format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup LLVM repository | |
run: | | |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main' | |
- name: Install clang-format | |
run: sudo apt update -q && sudo apt install -yq clang-format | |
- name: Check code style | |
run: clang-format -n -style=file --Werror *.cpp |