Skip to content

Commit

Permalink
integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Feb 7, 2023
1 parent 83e175c commit 5f41a0f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: go-test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Test
run: |
go test ./... -coverprofile=profile.cov
- uses: shogo82148/[email protected]
with:
path-to-profile: profile.cov
22 changes: 6 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,15 @@ name: test
on: [push, pull_request]

jobs:
test:
build:

runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Test
run: |
go test ./... -coverprofile=profile.cov
- uses: shogo82148/[email protected]
with:
path-to-profile: profile.cov
- name: test
run: docker-compose up --exit-code-from sut
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mapcleaner
-----------------

![](https://github.com/BuckarooBanzay/mapcleaner/workflows/build/badge.svg)
![](https://github.com/BuckarooBanzay/mapcleaner/workflows/go-test/badge.svg)
![](https://github.com/BuckarooBanzay/mapcleaner/workflows/test/badge.svg)

![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/minetest-go/mapcleaner)
Expand Down

0 comments on commit 5f41a0f

Please sign in to comment.