chore(deps): bump cc from 1.2.45 to 1.2.47 in the cargo-prod group #33
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.ref}} | |
| cancel-in-progress: true | |
| # No GITHUB_TOKEN permissions, as we don't use it. | |
| permissions: {} | |
| jobs: | |
| test: | |
| name: Test parser | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-15] | |
| env: | |
| TREE_SITTER_ABI_VERSION: 14 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up tree-sitter | |
| uses: tree-sitter/setup-action/cli@c4c258862a6a7e43a7aef152256bbf659972c408 # v2 | |
| - name: Set up examples | |
| run: |- | |
| git clone https://github.com/mdn/content examples/content --single-branch --depth=1 --filter=blob:none | |
| git clone https://github.com/mdn/translated-content examples/translated-content --single-branch --depth=1 --filter=blob:none | |
| - name: Run tests | |
| uses: tree-sitter/parser-test-action@05f6ce7c7e54603c45cd87ed926725dc870bcc63 # v3 | |
| with: | |
| generate: false | |
| test-rust: true | |
| #test-node: true | |
| #test-python: true | |
| #test-go: true | |
| #test-swift: true | |
| - name: Parse examples | |
| uses: tree-sitter/parse-action@f44ffa94f802024f27e821a72e6f2f3efc5dd521 # v4 | |
| with: | |
| files: examples/mdn/*/files/**/*.md | |
| fuzz: | |
| name: Fuzz parser | |
| runs-on: ubuntu-latest | |
| env: | |
| TREE_SITTER_ABI_VERSION: 14 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run fuzzer | |
| uses: tree-sitter/fuzz-action@6a1dcff00aefd038ba418bd63732a9add4901266 # v4 | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| cache: npm | |
| - name: Install modules | |
| run: npm ci --legacy-peer-deps | |
| - name: Run ESLint | |
| run: npm run lint |