Skip to content

Commit a108b52

Browse files
authored
Merge pull request #93 from pior/ci
Add a Github Action to run tests
2 parents a52596c + 96fda0e commit a108b52

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go-version: [ '1.22', '1.23.x' ]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup Go ${{ matrix.go-version }}
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: ${{ matrix.go-version }}
22+
23+
- name: Build
24+
run: go build -v ./...
25+
26+
- name: Run tests
27+
run: |
28+
go version
29+
cd uaparser
30+
go test -cover ./...

0 commit comments

Comments
 (0)