Merge pull request #1117 from candy-lang/memory-layout #2121
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: 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/rust-cache@v2.7.7 | |
| - name: "Compiler: clippy" | |
| run: cargo clippy --package candy_compiler_v4 -- --deny warnings | |
| - name: "Compiler: test" | |
| run: cargo test --package candy_compiler_v4 | |
| - name: "Compiler: fmt" | |
| run: cargo fmt --package candy_compiler_v4 --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/eslint-formatter-sarif@3.0.0 | |
| - 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 |