github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/.github/workflows/checks.yml (about)

     1  name: checks 
     2  on: [
     3    pull_request,
     4    workflow_dispatch,
     5  ]
     6  env:
     7  
     8    TERM: xterm
     9    REVIVE_FORCE_COLOR: 1
    10  
    11  jobs:
    12    test:
    13      name: run-testcases
    14      runs-on: ubuntu-latest
    15      strategy:
    16        matrix:
    17          go_version: ['1.21']
    18      # services:
    19      #   redis:
    20      #     image: redis:5.0-alpine
    21      #     ports: 
    22      #       - 6379:6379
    23      steps:
    24        - uses: actions/checkout@v3
    25        - uses: actions/setup-go@v3
    26          with:
    27            go-version: ${{ matrix.go_version }}
    28        - uses: actions/cache@v3
    29          with:
    30            path: |
    31              ~/.cache/go-build
    32              ~/go/pkg/mod
    33            key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
    34            restore-keys: |
    35              ${{ runner.os }}-go-
    36        - name: start services
    37          run: docker compose up -d
    38        - name: run testcases
    39          run: make test2
    40        - name: benchmark
    41          run: make bench
    42        - name: linter
    43          run: make lint
    44        - name: vet
    45          run: make vet
    46  
    47