Skip to content

Commit 404b914

Browse files
authored
Merge pull request #28 from estesp/githubactions
Move CI to GitHub Actions
2 parents 48eb88e + 4248200 commit 404b914

11 files changed

Lines changed: 623 additions & 3 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

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.o
33
*.a
44
*.so
5+
bin/
56

67
# Folders
78
_obj
@@ -22,5 +23,3 @@ _testmain.go
2223
*.exe
2324
*.test
2425
*.prof
25-
26-
vendor/

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/containerd/btrfs
22

3-
go 1.13
3+
go 1.15
44

55
require github.com/pkg/errors v0.8.1

vendor/github.com/pkg/errors/.gitignore

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/pkg/errors/.travis.yml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/pkg/errors/LICENSE

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/pkg/errors/README.md

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/pkg/errors/appveyor.yml

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)