Skip to content

Commit

Permalink
Added GHA workflow to mailgun-go
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 committed Jul 3, 2023
1 parent ca9d440 commit f53dcf2
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 f53dcf2

Please sign in to comment.