[ci] add turbo #1550 #545
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: agdb_ci | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- agdb_ci/** | |
- Version | |
- agdb_server/openapi.json | |
- agdb_server/test_queries.json | |
- .github/workflows/agdb_ci.yaml | |
jobs: | |
agdb_ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- run: cargo fmt -p agdb_ci --check | |
- run: npm ci && npm run build | |
working-directory: agdb_api/typescript | |
- run: npm ci && npm run build | |
working-directory: agdb_studio | |
- run: cargo clippy -p agdb_ci --all-targets --all-features -- -D warnings | |
- run: cargo run -p agdb_ci -r | |
- run: | | |
if [[ "$(git diff --name-only)" != "" ]]; then | |
git diff | |
git diff --name-only | |
echo "ERROR: Some packages have not been updated. Plesae run 'cargo run -p agdb_ci -r' and commit the result." | |
exit 1 | |
fi |