feat(sliding-window): add 121_best_time_to_buy_and_sell_stock.rs #2
This file contains hidden or 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: Checks | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| typos: | |
| runs-on: ubuntu-latest | |
| name: spell check with typos | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: cachix/install-nix-action@v31 | |
| - name: Run typos command | |
| shell: nix shell nixpkgs#typos --quiet --command bash {0} | |
| run: typos --hidden --exclude .git --format brief | |
| cocogitto: | |
| runs-on: ubuntu-latest | |
| name: check conventional commits | |
| # Only run this step in the main branch. | |
| if: github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: cachix/install-nix-action@v31 | |
| - name: Check the latest commit message | |
| shell: nix shell nixpkgs#cocogitto --quiet --command bash {0} | |
| run: cog check HEAD..HEAD |