Merge pull request #5 from hhertout/dev #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 📨 Mailer service | |
on: | |
pull_request: | |
branches: ["main", "dev"] | |
push: | |
branches: ["main"] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.20.3 | |
- name: Tests | |
run: go test ./tests | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.20.3 | |
- name: Build | |
run: go build -o main cmd/api/main.go |