Update go.mod to reorder dependencies and ensure MongoDB driver is in… #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit-Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-blog: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
- name: Run blog tests | |
working-directory: ./blog | |
run: | | |
go mod tidy | |
go test ./... | |
test-framework: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
- name: Run framework tests | |
working-directory: ./framework | |
run: | | |
go mod tidy | |
go test ./... | |
test-gateway: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
- name: Run gateway tests | |
working-directory: ./gateway | |
run: | | |
go mod tidy | |
go test ./... |