Merge pull request #129 from jianlingzhong/main #468
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: "Lint" | |
on: | |
pull_request: | |
push: | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install apt packages | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: shellcheck | |
# Update this whenever the package list changes. | |
version: 2022.10.16--22.13.50 | |
- name: Lint bash scripts | |
working-directory: ${{ github.workspace }}/compiler+runtime | |
run: ./bin/ci/lint | |
# TODO: Enable once 19 is released. | |
#- name: Run clang-format on compiler+runtime/include/cpp | |
# uses: jidicula/[email protected] | |
# with: | |
# clang-format-version: 18 | |
# check-path: compiler+runtime/include/cpp | |
#- name: Run clang-format on compiler+runtime/src/cpp | |
# uses: jidicula/[email protected] | |
# with: | |
# clang-format-version: 18 | |
# check-path: compiler+runtime/src/cpp | |
#- name: Run clang-format on compiler+runtime/test/cpp | |
# uses: jidicula/[email protected] | |
# with: | |
# clang-format-version: 18 | |
# check-path: compiler+runtime/test/cpp |