Skip to content

Commit 21f5202

Browse files
Add GHA workflows (#10)
1 parent 827fccc commit 21f5202

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Main WF"
2+
3+
on: push
4+
5+
jobs:
6+
unit-tests:
7+
runs-on: ubuntu-20.04
8+
env:
9+
TEST_RESULTS: /tmp/test-results
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-go@v5
13+
with:
14+
go-version-file: 'go.mod'
15+
- name: "Install Deps"
16+
run: |
17+
go version
18+
sudo apt install libappindicator3-dev libgtk-3-dev
19+
#sudo apt install libayatana-appindicator3-dev libgtk-3-dev
20+
- name: "Run test"
21+
run: |
22+
./build.sh -v ./...
23+
build-dry-run:
24+
runs-on: ubuntu-20.04
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-go@v5
28+
with:
29+
go-version-file: 'go.mod'
30+
- uses: goreleaser/goreleaser-action@v6
31+
with:
32+
version: '2.7.0'
33+
args: "release --snapshot"

.github/workflows/trunk.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Trunk WF"
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-release:
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version-file: 'go.mod'
21+
- uses: goreleaser/goreleaser-action@v6
22+
with:
23+
version: '2.7.0'
24+
args: "release --clean"
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)