Merge pull request #357 from UTDNebula/to-prod #468
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
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Go | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| workflow_dispatch: | |
| jobs: | |
| build_ubuntu: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./api | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.24' | |
| cache-dependency-path: "**/go.sum" | |
| - name: Setup | |
| run: make setup | |
| - name: Check | |
| run: make check | |
| - name: Build | |
| run: make build | |
| - name: Test | |
| env: | |
| MONGODB_URI: ${{ secrets.MONGODB_URI }} | |
| run: make test | |
| build_windows: | |
| runs-on: windows-latest | |
| defaults: | |
| run: | |
| working-directory: .\api | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.24' | |
| cache-dependency-path: "**\\go.sum" | |
| - name: Setup | |
| run: .\build.bat setup | |
| - name: Docs | |
| run: .\build.bat docs | |
| - name: Check | |
| run: .\build.bat checks | |
| - name: Build | |
| run: .\build.bat build | |
| - name: Test | |
| env: | |
| MONGODB_URI: ${{ secrets.MONGODB_URI }} | |
| run: .\build.bat test |