Update dependabot.yml #317
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: Test (Go) | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'smart-contracts/**' | |
- '**.md' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'smart-contracts/**' | |
- '**.md' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
# This workflow makes x86_64 binaries for linux. | |
# TODO: add darwin later | |
jobs: | |
test-go: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Get git diff | |
uses: technote-space/[email protected] | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- name: Setup Golang | |
if: env.GIT_DIFF | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: Display go version | |
if: env.GIT_DIFF | |
run: go version | |
- name: Run all tests | |
if: env.GIT_DIFF | |
run: make test-cover | |
- name: Code coverage report | |
if: env.GIT_DIFF | |
uses: codecov/[email protected] |