Skip to content

Commit 91140cb

Browse files
authored
Merge pull request #289 from cnabio/gh-actions
Add github action that builds project
2 parents a63ee2e + d740626 commit 91140cb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: build
4+
on: [push, pull_request]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v3
12+
- uses: actions/setup-go@v3
13+
with:
14+
go-version-file: go.mod
15+
cache: true
16+
cache-dependency-path: go.sum
17+
- name: Bootstrap
18+
run: make bootstrap
19+
- name: Build
20+
run: make fetch-schemas build
21+
- name: Build (Windows)
22+
run: GOOS=windows make build
23+
- name: Build (Darwin)
24+
run: GOOS=darwin make build
25+
- name: Lint
26+
run: make lint
27+
- name: Test
28+
run: make coverage

0 commit comments

Comments
 (0)