Merge pull request #85 from anchore/asomya/latest #252
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: "Validations" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
GO_VERSION: "1.18.x" | |
GO_STABLE_VERSION: true | |
jobs: | |
Build-Smoke-Test: | |
name: "Build Smoke Test" | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
stable: ${{ env.GO_STABLE_VERSION }} | |
- uses: actions/checkout@v4 | |
- 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: Smoke test | |
run: go build -v ./... |