Skip to content

correct early exits #742

correct early exits

correct early exits #742

Workflow file for this run

name: godyl
on:
workflow_dispatch:
pull_request:
push:
branches:
- dev
- main
tags:
- "*"
jobs:
info:
uses: idelchi/devenv/.github/workflows/info.yml@main
cleanup:
uses: idelchi/devenv/.github/workflows/cleanup.yml@main
if: github.ref == 'refs/heads/dev'
needs: info
permissions:
actions: write
verify:
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
uses: idelchi/devenv/.github/workflows/task.yml@main
needs: info
test:
needs: verify
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
strategy:
matrix:
os:
- ubuntu-24.04
- windows-2022
- macos-14
runs-on: ${{ matrix.os }}
env:
GODYL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.2"
check-latest: true
- name: Run tests
run: go run . --show-platform
next-tag:
uses: idelchi/devenv/.github/workflows/next-tag.yml@main
if: github.ref == 'refs/heads/dev'
needs: test
prerelease:
uses: idelchi/devenv/.github/workflows/prerelease.yml@main
if: github.ref == 'refs/heads/dev'
needs: next-tag
permissions:
contents: write
actions: write
with:
tag: ${{ needs.next-tag.outputs.next }}-beta
release:
uses: idelchi/devenv/.github/workflows/gorelease.yml@main
if: startsWith(github.ref, 'refs/tags/')
needs: info
permissions:
contents: write