Skip to content

Commit

Permalink
Merge pull request #308 from thrawn01/thrawn/gha
Browse files Browse the repository at this point in the history
Added GHA workflow to mailgun-go
  • Loading branch information
thrawn01 authored Jul 3, 2023
2 parents ca9d440 + f53dcf2 commit 78f46f4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: On Pull Request

on:
pull_request:
branches: [ master, main ]
push:
branches: [master, main ]

jobs:
test:
name: test
strategy:
matrix:
go-version:
- 1.18.x
- 1.19.x
- 1.20.x
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- run: go env

- name: Cache deps
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install deps
run: go mod download

- name: Test
run: go test -v -race -p=1 -count=1

0 comments on commit 78f46f4

Please sign in to comment.