Advent of Code #2052
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: Compiler | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
env: | |
RUST_BACKTRACE: 1 | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dsherret/rust-toolchain-file@v1 | |
- uses: Swatinem/[email protected] | |
- name: "Compiler: clippy" | |
run: cargo clippy -- --deny warnings | |
- name: "Compiler: test" | |
run: cargo test --workspace | |
- name: "Compiler: fmt" | |
run: cargo fmt --check | |
vscode-extension-check: | |
name: Check VS Code Extension | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
defaults: | |
run: | |
working-directory: vscode_extension_v4/ | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm install | |
- run: npm install @microsoft/[email protected] | |
- name: Run ESLint | |
run: | | |
npx eslint . \ | |
--ext .ts \ | |
--format @microsoft/eslint-formatter-sarif \ | |
--output-file eslint-results.sarif | |
continue-on-error: true | |
- uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: vscode_extension_v4/eslint-results.sarif | |
wait-for-processing: true |