Skip to content

Commit

Permalink
Merge pull request #30 from aws-controllers-k8s/a-hilaly/test-ci
Browse files Browse the repository at this point in the history
Add github action for unit tests
  • Loading branch information
michaelhtm authored Sep 25, 2024
2 parents bc1f1df + ba760be commit bc9a427
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: unit tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.22', '1.23' ]

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

- name: Build
run: go build cmd

- name: Run unit tests
run: go test -v ./...

0 comments on commit bc9a427

Please sign in to comment.