Skip to content

Commit 79e2cfb

Browse files
committed
ci: run integration tests as part of CI
Signed-off-by: setrofim <[email protected]>
1 parent 6567eca commit 79e2cfb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/integ.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# GitHub Actions - CI for Go to build & test. See ci-go-cover.yml and linters.yml for code coverage and linters.
2+
# Taken from: https://github.com/fxamacker/cbor/workflows/ci.yml (thanks!)
3+
name: integration-tests
4+
on: [push, pull_request]
5+
jobs:
6+
7+
# Test on various OS with specified Go version.
8+
tests:
9+
name: ubuntu-latest
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/setup-go@v5
13+
with:
14+
go-version: "1.25.1"
15+
- name: Install jq
16+
run:
17+
sudo apt-get install --yes jq
18+
- name: Install Docker
19+
run: |
20+
curl -fsSL https://get.docker.com | sh
21+
sudo usermod -aG docker $USER
22+
sudo systemctl restart docker
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
with:
28+
fetch-depth: 1
29+
- name: Build project
30+
run: make
31+
- name: Run tests
32+
run: |
33+
make integ-test

0 commit comments

Comments
 (0)