ci: add linting for yml files #31
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: back-compat PR | |
on: | |
pull_request: | |
paths: | |
- "go.*" | |
- "**/*.go" | |
- ".github/workflows/*.yml" | |
permissions: | |
contents: read | |
env: | |
GO_VERSION: '1.23.0' | |
jobs: | |
check-back-compat: | |
name: build | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: build main | |
run: | | |
go build -o hours_main | |
cp hours_main /var/tmp | |
rm hours_main | |
- uses: actions/checkout@v4 | |
- name: build head | |
run: | | |
go build -o hours_head | |
cp hours_head /var/tmp | |
rm hours_head | |
- name: Run last version | |
run: | | |
/var/tmp/hours_main --dbpath=/var/tmp/throwaway-1.db report 3d -p | |
/var/tmp/hours_main --dbpath=/var/tmp/throwaway-2.db gen -y | |
- name: Run current version | |
run: | | |
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-1.db report 3d -p | |
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-2.db report 3d -p | |
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-2.db log 3d -p | |
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-2.db stats 3d -p |