Skip to content

Merge pull request #233 from Shopify/dependabot/github_actions/action… #298

Merge pull request #233 from Shopify/dependabot/github_actions/action…

Merge pull request #233 from Shopify/dependabot/github_actions/action… #298

Workflow file for this run

name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
name: Go test
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Get latest Go version
id: gover
run: echo goversion=$(awk -F':|-' '!/^#/ {print $2}' .github/dockerfile-for-dependabot/Dockerfile) >> "$GITHUB_OUTPUT"
- name: Setup go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: "${{ steps.gover.outputs.goversion }}"
- run: |
go mod download
go test -race -coverprofile=coverage.txt -covermode=atomic