From 71963604c984bc9331d9ea86839b4c6af6d5b5cd Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Fri, 9 Feb 2024 21:59:03 +0100 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..15afe64 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Gotestsum installer + uses: autero1/action-gotestsum@v2.0.0 + with: + gotestsum_version: '1.11.0' + + - name: Test + run: gotestsum --format testname ./...