github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/.github/workflows/tests.yml (about)

     1  name: Run tests
     2  on: [push]
     3  
     4  jobs:
     5  
     6    test:
     7      name: Test repo
     8      runs-on: ubuntu-latest
     9      steps:
    10      - name: Install Protoc
    11        uses: arduino/setup-protoc@v1
    12      - name: Set up Go 1.18
    13        uses: actions/setup-go@v1
    14        with:
    15          go-version: 1.18
    16        id: go
    17  
    18      - name: Check out code into the Go module directory
    19        uses: actions/checkout@v2
    20  
    21      - name: Enable caching
    22        uses: actions/cache@v2
    23        with:
    24          path: ~/go/pkg/mod
    25          key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    26          restore-keys: |
    27            ${{ runner.os }}-go-
    28      
    29      - name: Get dependencies
    30        run: |
    31          go get -v -t -d ./...
    32  
    33      - name: Run tests
    34        id: tests
    35        env:
    36          IN_TRAVIS_CI: yes
    37        run: go test -v ./...