From 17f5a26e8f8ece6d015a1da7b20b3a859c72ec1f Mon Sep 17 00:00:00 2001 From: Konstantinos Koutsilis <50744802+kkoutsilis@users.noreply.github.com> Date: Wed, 27 Dec 2023 15:27:32 +0200 Subject: [PATCH] Add Basic CI (#6) * Test basic CI --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 39 insertions(+), 1 deletion(-) 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..1b44c64 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go 1.21.x + uses: actions/setup-go@v4 + with: + go-version: '1.21.x' + - name: Install Dependencies + run: | + go get . + - name: Build + run: go build -v ./... + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go 1.21.x + uses: actions/setup-go@v4 + with: + go-version: '1.21.x' + - name: Install Dependencies + run: | + go get . + - name: Test + run: go test -v ./... + diff --git a/README.md b/README.md index 9469fb9..c05aa57 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# SSMG +# SSMG + +![CI](https://github.com/kkoutsilis/SSMG/actions/workflows/ci.yml/badge.svg) SSMG (Secret Santa Match Generator) is a simple CLI tool written in Go. It reads a JSON file containing Secret Santa participants, generates the matches, and sends an email to each participant with their assigned match.