Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mikestefanello/goweb into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestefanello committed Dec 31, 2021
2 parents 86774ae + a6e1311 commit 17185be
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test

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

jobs:

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Start containers
run: |
docker-compose up -d
sleep 3
- name: Test
run: go test -p 1 ./...

0 comments on commit 17185be

Please sign in to comment.