Skip to content

Commit 4248200

Browse files
committed
Use GitHub Actions for CI
Signed-off-by: Phil Estes <[email protected]>
1 parent 84ed5ce commit 4248200

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
name: Btrfs CI
13+
runs-on: ubuntu-18.04
14+
timeout-minutes: 5
15+
steps:
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v1
19+
with:
20+
go-version: 1.15
21+
id: go
22+
23+
- name: Setup environment
24+
shell: bash
25+
run: |
26+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
27+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
28+
29+
- name: Check out code
30+
uses: actions/checkout@v2
31+
with:
32+
path: src/github.com/containerd/btrfs
33+
fetch-depth: 25
34+
35+
- name: Project checks
36+
uses: containerd/project-checks@v1
37+
with:
38+
working-directory: src/github.com/containerd/btrfs
39+
40+
- name: Build
41+
working-directory: src/github.com/containerd/btrfs
42+
run: |
43+
make vet binaries

0 commit comments

Comments
 (0)