ci: build #12
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: test | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - "README.md" | |
| pull_request: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - "README.md" | |
| workflow_dispatch: | |
| jobs: | |
| ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 'stable' | |
| - name: Install Dependencies | |
| run: | | |
| go mod tidy | |
| - name: Create tmp file in frontend dist | |
| run: | | |
| cd frontend | |
| mkdir dist | |
| touch dist/tmp | |
| - name: Run Tests | |
| env: | |
| CGO_ENABLED: 0 | |
| run: | | |
| go test -v ./... |