-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (63 loc) · 1.55 KB
/
github-actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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