ci.yml

 1name: CI
 2
 3on:
 4  push:
 5    branches: [ main ]
 6  pull_request:
 7
 8jobs:
 9
10  build:
11    strategy:
12      matrix:
13        go-version: [~1.16]
14    runs-on: ubuntu-latest
15    steps:
16    - uses: actions/checkout@v2
17
18    # Remove this later
19    - name: Clone internal repositories
20      run: |
21        git clone -b release https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/charm-internal ../charm
22        git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/bubbletea-internal ../bubbletea
23
24    - name: Set up Go
25      uses: actions/setup-go@v2
26      with:
27        go-version: ${{ matrix.go-version }}
28
29    - name: Build
30      run: go build -v ./...
31
32    - name: Test
33      run: go test -v ./...