forked from saintpete/twilio-go
-
Notifications
You must be signed in to change notification settings - Fork 70
26 lines (26 loc) · 794 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
with:
path: './src/github.com/kevinburke/twilio-go'
# staticcheck needs this for GOPATH
- run: |
echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
- name: Download dependencies
run: go get -t -v ./...
working-directory: './src/github.com/kevinburke/twilio-go'
- name: Run tests
run: make ci
working-directory: './src/github.com/kevinburke/twilio-go'