File: ci.yml

package info (click to toggle)
tree-sitter-bash 0.25.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,520 kB
  • sloc: ansic: 352,182; javascript: 1,083; sh: 747; makefile: 101; python: 92; lisp: 47; cpp: 14
file content (70 lines) | stat: -rw-r--r-- 2,111 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI

on:
  push:
    branches: [master]
    paths:
      - grammar.js
      - src/**
      - test/**
      - bindings/**
      - binding.gyp
  pull_request:
    paths:
      - grammar.js
      - src/**
      - test/**
      - bindings/**
      - binding.gyp

concurrency:
  group: ${{github.workflow}}-${{github.ref}}
  cancel-in-progress: true

jobs:
  test:
    name: Test parser
    runs-on: ${{matrix.os}}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macos-14]
    steps:
      - name: Checkout repository
        uses: actions/checkout@v5
      - name: Set up tree-sitter
        uses: tree-sitter/setup-action/cli@v2
      - name: Set up examples
        shell: bash
        run: |-
          git clone https://github.com/Bash-it/bash-it examples/bash-it -q --single-branch --depth=1
          git clone https://git.savannah.gnu.org/git/bash.git examples/bash -q --single-branch --depth=1
          git clone https://anongit.gentoo.org/git/repo/gentoo.git examples/gentoo -q --single-branch --depth=1
          if [[ $RUNNER_OS != Windows ]]; then
            git clone https://github.com/oilshell/wild-corpus examples/wild-corpus -q --single-branch --depth=1
          fi
      - name: Run tests
        uses: tree-sitter/parser-test-action@v3
        with:
          generate: false
          test-rust: true
          test-node: false
          test-python: true
          test-go: true
          test-swift: false
      - name: Parse examples
        uses: tree-sitter/parse-action@v4
        with:
          files: |-
            examples/*.sh
            examples/bash-it/**/*.sh
            examples/bash-it/**/*.bash
            examples/bash/**/*.sh
            examples/bash/**/*.tests
            examples/gentoo/**/*.sh
            examples/gentoo/**/*.eclass
            examples/wild-corpus/**/*.sh
            # examples/gentoo/**/*.ebuild
            !examples/gentoo/app-antivirus/fangfrisch/files/fangfrisch-has-news.sh
            !examples/gentoo/eclass/ruby-fakegem.eclass
          invalid-files-list: script/known-failures.txt