diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a078e19 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [ main, feature/* ] + pull_request: + branches: [ main ] + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.20' + + - name: Install dependencies + run: go mod tidy + + - name: Run unit tests + run: go test ./... + + - name: Build + run: go build ./... diff --git a/README.md b/README.md index 2e93c12..42f8c97 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,4 @@ make ```sh > go test -v ./... ``` +Small update to trigger CI