github.com/goravel/framework@v1.13.9/.github/workflows/test.yml (about)

     1  name: Test
     2  on:
     3    push:
     4      branches:
     5        - master
     6    pull_request:
     7  jobs:
     8    test:
     9      strategy:
    10        matrix:
    11          go:
    12            - "1.20"
    13            - "1.21"
    14      runs-on: ubuntu-latest
    15      steps:
    16        - uses: actions/checkout@v4
    17        - uses: actions/setup-go@v4
    18          with:
    19            go-version: ${{ matrix.go }}
    20        - name: Install dependencies
    21          run: go mod tidy
    22        - name: Run tests
    23          run: go test ./...
    24    windows:
    25      strategy:
    26        matrix:
    27          go:
    28            - "1.20"
    29            - "1.21"
    30      runs-on: windows-latest
    31      steps:
    32        - uses: actions/checkout@v4
    33        - uses: actions/setup-go@v4
    34          with:
    35            go-version: ${{ matrix.go }}
    36        - name: Install dependencies
    37          run: go mod tidy
    38        - name: Run tests
    39          run: go test ./... -short