From d9be3ad993e61dea183be6e33335961e1aa512f0 Mon Sep 17 00:00:00 2001 From: Jonathan Martz Date: Sun, 12 Jan 2025 11:58:18 +0100 Subject: [PATCH] add workflow for tdd --- .github/workflows/tdd.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tdd.yml diff --git a/.github/workflows/tdd.yml b/.github/workflows/tdd.yml new file mode 100644 index 0000000..4a96a80 --- /dev/null +++ b/.github/workflows/tdd.yml @@ -0,0 +1,30 @@ +name: Run Mailer + +on: + push: + branches: [tdd] + pull_request: + branches: [tdd] + +jobs: + run-mailer: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23.4' + + - name: Run mailer + env: + MAILER_SENDER: ${{ secrets.MAILER_SENDER }} + MAILER_USER: ${{ secrets.MAILER_USER }} + MAILER_PASSWORD: ${{ secrets.MAILER_PASSWORD }} + run: | + go run mailer.go \ + -sender ${{ secrets.MAILER_SENDER }} \ + -smtpUser ${{ secrets.MAILER_USER }} \ + -smtpPassword ${{ secrets.MAILER_PASSWORD }} \ No newline at end of file