Add manual build, push and trigger #473
This file contains hidden or 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: Go Tests [MATRIX STRATEGY] | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| name: Run Go Tests in ${{ matrix.service }} service | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| service: [cortex, skeleton, community] # Add more services here as needed | |
| steps: | |
| - name: ⬇️ Checkout | |
| uses: actions/checkout@v3 | |
| - name: Cache Go modules and build (reusable) | |
| uses: ./.github/actions/go-cache | |
| with: | |
| modulePath: ${{ matrix.service }} | |
| - name: Run Go tests | |
| run: | | |
| cd ${{ matrix.service }} | |
| go mod tidy | |
| go test ./... -v |