Buyback and Burn #4178
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: Tests | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
name: "Unit Tests" | |
runs-on: ubuntu-latest | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@master | |
with: | |
cancel_others: "true" # workflow-runs from outdated commits will be cancelled. | |
concurrent_skipping: "same_content" | |
skip_after_successful_duplicate: "true" | |
paths: '["**/*.go", "**/*.mod", "**/*.sum"]' | |
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]' | |
- name: Skipping test | |
run: echo Should I skip tests? ${{ steps.skip_check.outputs.should_skip }} | |
- name: Check out repository code | |
if: steps.skip_check.outputs.should_skip != 'true' | |
uses: actions/checkout@v3 | |
- name: Setup Golang | |
if: steps.skip_check.outputs.should_skip != 'true' | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Run all unit tests | |
if: steps.skip_check.outputs.should_skip != 'true' | |
run: make test-unit | |