Skip to content

Commit c24fdae

Browse files
author
Kazuyoshi Kato
authored
Merge pull request #63 from firecracker-microvm/github-actions
Enable GitHub Actions
2 parents a1fef26 + 059da7a commit c24fdae

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/go.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
go: ['1.14', '1.15', '1.16']
14+
os: ['ubuntu-20.04']
15+
16+
name: ${{ matrix.os }} / Go ${{ matrix.go }}
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Set up Go 1.x
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: ${{ matrix.go }}
23+
24+
- name: Check out code into the Go module directory
25+
uses: actions/checkout@v2
26+
27+
- name: Build
28+
run: make all
29+
30+
# GitHub Actions' VMs don't have KVM. Firecracker itself won't work.
31+
- name: Test
32+
run: SKIP_INTEG_TEST=1 make test

0 commit comments

Comments
 (0)