From aa3c0c74f3d516bf7b23fdffa8fbc0fdb1ddcdaa Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sat, 13 Aug 2022 20:54:38 +0100 Subject: [PATCH] Add test cases --- .github/workflows/test.yml | 11 ++++++++--- ipilot_test.go | 29 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 ipilot_test.go diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf2f231..1f5b8e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,19 +7,24 @@ permissions: contents: read jobs: - lint: + test: runs-on: ubuntu-latest steps: - - name: Check out repository code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.19 - name: Create golangci-lint report run: | curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1 $(go env GOPATH)/bin/golangci-lint run --out-format checkstyle -D deadcode,unused --build-tags=integration --timeout 10m --issues-exit-code 0 ./... > report.xml sed -i 's+