github.com/micro/go-micro/v2@v2.9.1/.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  
    11      - name: Set up Go 1.13
    12        uses: actions/setup-go@v1
    13        with:
    14          go-version: 1.13
    15        id: go
    16  
    17      - name: Check out code into the Go module directory
    18        uses: actions/checkout@v2
    19  
    20      - name: Get dependencies
    21        run: |
    22          go get -v -t -d ./...
    23  
    24      - name: Run tests
    25        id: tests
    26        env:
    27          IN_TRAVIS_CI: yes
    28        run: go test -v ./...
    29    
    30      - name: Notify of test failure
    31        if: failure()
    32        uses: rtCamp/action-slack-notify@v2.0.0
    33        env:
    34          SLACK_CHANNEL: build
    35          SLACK_COLOR: '#BF280A'
    36          SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
    37          SLACK_TITLE: Tests Failed
    38          SLACK_USERNAME: GitHub Actions
    39          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
    40          
    41      - name: Notify of test success
    42        if: success()
    43        uses: rtCamp/action-slack-notify@v2.0.0
    44        env:
    45          SLACK_CHANNEL: build
    46          SLACK_COLOR: '#1FAD2B'
    47          SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
    48          SLACK_TITLE: Tests Passed
    49          SLACK_USERNAME: GitHub Actions
    50          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
    51