github.com/muxinc/mux-go@v1.1.1/.github/workflows/ci.yaml (about)

     1  name: Integration Test
     2  
     3  on:
     4    push:
     5      branches:
     6        - master
     7    pull_request: 
     8  
     9  # I appreciate this isn't the cleanest workflow, but it's the neatest I can get it while we're
    10  # still using dep to manage dependencies. If we move to go modules this can be cleaned up a lot.
    11  # I'd love to use a nicer checkout path, but GitHub actions won't let you use anything above
    12  # /home/runner/work/mux-go/mux-go/, so /home/runner/work/mux-go/mux-go/go it is!
    13  
    14  jobs:
    15    build:
    16      name: Integration Test
    17      runs-on: ubuntu-latest
    18      env:
    19        GOPATH: /home/runner/work/mux-go/mux-go/go
    20        CHECKOUT_LOCATION: /home/runner/work/mux-go/mux-go/go/src/github.com/muxinc/mux-go
    21      steps:
    22        - name: Check out code
    23          uses: actions/checkout@v2
    24          with:
    25            path: ${{env.CHECKOUT_LOCATION}}
    26        - name: Install Go
    27          uses: actions/setup-go@v2
    28        - name: Install Go Dependencies
    29          run: |
    30            cd $CHECKOUT_LOCATION
    31            export PATH=$PATH:$(go env GOPATH)/bin
    32            go install
    33        - name: Run Integration Tests
    34          run: |
    35            cd $CHECKOUT_LOCATION
    36            bash test.sh
    37          env: 
    38            MUX_TOKEN_ID: ${{ secrets.MUX_TOKEN_ID }}
    39            MUX_TOKEN_SECRET: ${{ secrets.MUX_TOKEN_SECRET }}