chore: add dev debug build using delve #57
Workflow file for this run
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: "Validations" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
GO_VERSION: "1.21.x" | |
GO_STABLE_VERSION: true | |
jobs: | |
Unit-Test: | |
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline | |
name: "Unit tests" | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
stable: ${{ env.GO_STABLE_VERSION }} | |
- uses: actions/checkout@v2 | |
- name: Restore tool cache | |
id: tool-cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ github.workspace }}/.tmp | |
key: ${{ runner.os }}-tool-${{ hashFiles('Makefile') }} | |
- name: Restore go cache | |
id: go-cache | |
uses: actions/[email protected] | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go-${{ env.GO_VERSION }}- | |
- name: Run unit tests | |
run: make test | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: unit-test-results | |
path: test/results/**/* | |
Container-Build-Test: | |
name: "Container Build Test" | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
stable: ${{ env.GO_STABLE_VERSION }} | |
- uses: actions/checkout@v2 | |
- name: Restore tool cache | |
id: tool-cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ github.workspace }}/.tmp | |
key: ${{ runner.os }}-tool-${{ hashFiles('Makefile') }} | |
- name: Restore go cache | |
id: go-cache | |
uses: actions/[email protected] | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go-${{ env.GO_VERSION }}- | |
- name: Install tools | |
run: make bootstrap-tools | |
- name: Run container build | |
run: make snapshot |