From ccd12ba323b235aee1b95044a40ceeef97258e55 Mon Sep 17 00:00:00 2001 From: Varanasi Venkata Bhaskaram Date: Fri, 7 Jun 2024 09:40:50 -0700 Subject: [PATCH] Update github-actions-demo.yml Signed-off-by: Varanasi Venkata Bhaskaram --- .github/workflows/github-actions-demo.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 15a61d6..2d162f0 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -10,9 +10,13 @@ jobs: - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} + - name: Setup Go 1.15.x + uses: actions/setup-go@v5 + with: + # Semantic version range syntax or exact version of Go + go-version: '1.15.x' + - run: go build -v -race ./... + - run: diff -u <(echo -n) <(gofmt -d .) || true + - run: go vet ./... + - run: go test -v -race ./... - run: echo "🍏 This job's status is ${{ job.status }}."