Skip to content

Commit

Permalink
added test, inspired by the amplience repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bluedread committed Jun 15, 2022
1 parent fbf4406 commit 8b3e147
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Tests

on: [push]

jobs:

test:
runs-on: ubuntu-latest

strategy:
max-parallel: 4
matrix:
go-version: ["1.18"]

steps:
- uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go-version }}
uses: WillAbides/setup-go-faster@v1.7.0
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get ./serverless
- name: Run staticcheck
uses: dominikh/staticcheck-action@v1.0.0
with:
version: "2021.1.2"
install-go: false
cache-key: ${{ matrix.go-version }}
- name: Run tests
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...

0 comments on commit 8b3e147

Please sign in to comment.