Solve Problem 2257. Count Unguarded Cells in the Grid in C #3305
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
test-solutions: | |
name: Test Solutions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
- name: Test Solutions | |
uses: threeal/leettest-action@v0.2.0 | |
with: | |
files: problems/**/solution.cpp | |
test-old-solutions: | |
name: Test Old Solutions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
- name: Setup Poetry | |
uses: threeal/setup-poetry-action@v1.1.0 | |
- name: Cache Dependencies Build | |
uses: threeal/cache-action@v0.2.1 | |
with: | |
key: CPM-${{ runner.os }} | |
version: ${{ hashFiles('package-lock') }} | |
files: build/_deps | |
- name: Setup Ninja | |
uses: seanmiddleditch/gha-setup-ninja@v5 | |
- name: Build Solutions | |
uses: threeal/cmake-action@v2.0.0 | |
with: | |
generator: Ninja | |
- name: Check Formatting | |
run: | | |
cmake --build build --target fix-format | |
git diff --exit-code HEAD | |
- name: Test Solutions | |
uses: threeal/ctest-action@v1.1.0 |