| name: "Lint" |
| |
| on: |
| push: |
| branches: [ "master" ] |
| pull_request: |
| branches: [ "master" ] |
| schedule: |
| - cron: '18 15 * * 0' |
| |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
| |
| jobs: |
| check: |
| name: Lint |
| runs-on: 'ubuntu-latest' |
| |
| steps: |
| - name: Checkout repository |
| uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 |
| |
| - name: Install tools |
| run: | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" |
| brew install buildifier typos-cli |
| |
| - name: Check typos |
| run: | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" |
| ./scripts/check_typos.sh |
| |
| # TODO(eustas): run buildifier |