FEAT: Implement build command #6
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: CICD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: Run unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Run setup | |
| uses: ./.github/actions/setup-workspace | |
| - name: Run tests | |
| run: | | |
| go clean -testcache | |
| go test -v -cover -race ./... | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Run setup | |
| uses: ./.github/actions/setup-workspace | |
| - name: Build binary | |
| run: | | |
| just tidy | |
| just build | |
| - name: Run binary | |
| run: | | |
| ./hackstack --help |