Skip to content

Commit ce1bee9

Browse files
committed
Add GitHub Actions workflow to build and test package
1 parent 1c388f6 commit ce1bee9

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: libdns/dnsimple
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-go@v6
16+
with:
17+
go-version-file: 'go.mod'
18+
cache: true
19+
- name: Build
20+
run: go build -v
21+
- name: Test
22+
run: go test -v
23+
env:
24+
TEST_API_ACCESS_TOKEN: ${{ secrets.TEST_API_ACCESS_TOKEN }}
25+
TEST_ZONE: ${{ secrets.TEST_ZONE }}

0 commit comments

Comments
 (0)