github.com/expr-lang/expr@v1.16.9/.github/workflows/test.yml (about)

     1  name: test
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  jobs:
    10    test:
    11      runs-on: ubuntu-latest
    12      strategy:
    13        matrix:
    14          go-versions: [ '1.18', '1.19', '1.20', '1.21', '1.22' ]
    15      steps:
    16        - uses: actions/checkout@v3
    17        - name: Setup Go ${{ matrix.go-version }}
    18          uses: actions/setup-go@v4
    19          with:
    20            go-version: ${{ matrix.go-version }}
    21        - name: Test
    22          run: go test ./...
    23  
    24    debug:
    25      runs-on: ubuntu-latest
    26      steps:
    27        - uses: actions/checkout@v3
    28        - name: Setup Go 1.18
    29          uses: actions/setup-go@v4
    30          with:
    31            go-version: 1.18
    32        - name: Test
    33          run: go test -tags=expr_debug -run=TestDebugger -v ./vm
    34  
    35    race:
    36      runs-on: ubuntu-latest
    37      steps:
    38        - uses: actions/checkout@v3
    39        - name: Setup Go 1.21
    40          uses: actions/setup-go@v4
    41          with:
    42            go-version: 1.21
    43        - name: Test
    44          run: go test -race .