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.