未验证 提交 3901ad84 编写于 作者: D Davies Liu 提交者: GitHub

add Github Actions as CI (#31)

* add Github Actions as CI

* trigger action on PR

* trigger action on *.yml

* run all intigration tests

* don't run fsracer in action
上级 232ef575
name: verify
on:
push:
branches:
- main
paths:
- '**.go'
pull_request:
branches:
- main
paths:
- '**.yml'
- '**.go'
- 'Makefile'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.13.x'
id: go
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install g++-multilib libacl1-dev attr redis-server
- name: Build linux target
run: |
export GOPATH=$HOME/go
make
- name: Set up for fstests
run: sudo make -C fstests setup
- name: Unit tests
run: make test
- name: Run all tests
run: make -C fstests fsx xattrs flock healthcheck
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册