Skip to content

Commit

Permalink
add Test workflow for every push to the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav committed Feb 16, 2024
1 parent 681886e commit 4fbd044
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:
- "**"
pull_request:
branches:
- "**"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.x' ]

env:
CGO_ENABLED: 0

steps:
- uses: actions/checkout@v3

- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Vet
run: go vet

- name: Build
run: go build -v ./cmd/waas-auth

- name: Test
run: go test -v ./...

0 comments on commit 4fbd044

Please sign in to comment.