Skip to content

Ensure we only build the emailer package in the emailer.test tool #5

Ensure we only build the emailer package in the emailer.test tool

Ensure we only build the emailer package in the emailer.test tool #5

name: Email_Form_Gateway_Build_Test_And_Deploy
on: [push, pull_request]
jobs:
deploy:
name: "Deploy to senpaid"
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download and install go
uses: actions/setup-go@v5
with:
go-version: '1.22.0'
- name: Print Go version
run: go version
- name: Run tests
run: CGO_ENABLED=0 go test -skip=SendEmail github.com/owenwaller/emailformgateway/...
- name: Build emailer test
run: CGO_ENABLED=0 go test -c -o ./emailer.test -run=SendEmail github.com/owenwaller/emailformgateway/emailer
- name: Listing
run: 'ls -al'