Skip to content

Commit 2c740fe

Browse files
authored
Create go.yml
1 parent e206c18 commit 2c740fe

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/go.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: golaf tests
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
14+
build:
15+
runs-on: ${{ matrix.config.os }}
16+
strategy:
17+
matrix:
18+
config:
19+
- os: ubuntu-latest
20+
- os: macos-latest
21+
- os: windows-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Set up Go
26+
uses: actions/setup-go@v4
27+
with:
28+
go-version: '1.20'
29+
30+
- name: Build
31+
run: go build -v ./...
32+
33+
- name: Go Tests
34+
run: go test -v ./...
35+
- name: CLI test
36+
shell: bash
37+
run: cd src; bash test.sh

0 commit comments

Comments
 (0)