Add GHA workflows (#10) #6
This file contains hidden or 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: "Main WF" | |
on: push | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-20.04 | |
env: | |
TEST_RESULTS: /tmp/test-results | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: "Install Deps" | |
run: | | |
go version | |
sudo apt install libappindicator3-dev libgtk-3-dev | |
#sudo apt install libayatana-appindicator3-dev libgtk-3-dev | |
- name: "Run test" | |
run: | | |
./build.sh -v ./... | |
build-dry-run: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- uses: goreleaser/goreleaser-action@v6 | |
with: | |
version: '2.7.0' | |
args: "release --snapshot" |