[main] Provide default version based on latest tag in branch #1553
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: "Tests" | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "v9.*" | |
- "v8.*" | |
- "v7.*" | |
pull_request: | |
branches: | |
- main | |
- v9 | |
- v8 | |
- v7 | |
paths-ignore: | |
- "doc/**" | |
- ".gitpod.yml" | |
- "README.md" | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
units: | |
name: Units | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- ubuntu-20.04 | |
- macos-latest | |
- macos-13 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: Run Units | |
run: make units | |
units-windows: | |
name: Units Windows | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-latest | |
- windows-2019 | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: pwsh | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
- name: Get build-time dependencies | |
run: | | |
choco install --no-progress --limit-output -y make | |
- name: Run Windows Units | |
run: | | |
Get-Command make | |
Get-Item Makefile | |
make units | |
# vim: set sw=2 ts=2 sts=2 et tw=78 foldlevel=2 fdm=indent nospell: |