Skip to content

Commit

Permalink
Added GitHub workflow as CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MewX committed Aug 28, 2020
1 parent 7f2147f commit ead46b6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Install Bazel
run: |
wget https://github.com/bazelbuild/bazel/releases/download/3.4.1/bazel_3.4.1-linux-x86_64.deb
wget https://github.com/bazelbuild/bazel/releases/download/3.4.1/bazel_3.4.1-linux-x86_64.deb.sha256
sha256sum -c bazel_3.4.1-linux-x86_64.deb.sha256
sudo dpkg -i bazel_3.4.1-linux-x86_64.deb
- name: Build
run:
bazel build :doubak

- name: Test
run:
bazel test //...
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Doubak

[![GitHub Action CI](https://github.com/its-my-data/doubak/workflows/CI/badge.svg?branch=master)](https://github.com/its-my-data/doubak/actions?query=workflow%3ACI)

豆瓣 (Douban.com) 备份工具命令行版,备份完整页面镜像,Golang实现。

## 为什么会有此项目?
Expand Down

0 comments on commit ead46b6

Please sign in to comment.